Skip to content

Instantly share code, notes, and snippets.

Joshua Sauder sjoshua270

  • Harrisonburg, VA
Block or report user

Report or block sjoshua270

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View OUViewModel.cs
public class OUViewModel : TreeViewItemViewModel
{
readonly DirectoryEntry _de;
private Stack<string> searchStack = new Stack<string>();
public OUViewModel(DirectoryEntry de, OUViewModel parent)
// The DirectorySearcher here is checking to see if there are any children under this DirectoryEntry
: base(parent, new DirectorySearcher(de, "(objectClass=organizationalUnit)", null, SearchScope.OneLevel).FindOne() != null)
{
_de = de;
View TreeViewItemViewModel.cs
public class TreeViewItemViewModel : INotifyPropertyChanged
{
#region Data
static readonly TreeViewItemViewModel DummyChild = new TreeViewItemViewModel();
readonly ObservableCollection<TreeViewItemViewModel> _children;
readonly TreeViewItemViewModel _parent;
bool _isExpanded;
View gist:f3d93fb50f21ad4a491881e61dad4087
Verifying that "sjoshua270.id" is my Blockstack ID. https://onename.com/sjoshua270
You can’t perform that action at this time.