Skip to content

Instantly share code, notes, and snippets.

View sjoshua270's full-sized avatar

Joshua Sauder sjoshua270

  • Harrisonburg, VA
View GitHub Profile
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;
public class TreeViewItemViewModel : INotifyPropertyChanged
{
#region Data
static readonly TreeViewItemViewModel DummyChild = new TreeViewItemViewModel();
readonly ObservableCollection<TreeViewItemViewModel> _children;
readonly TreeViewItemViewModel _parent;
bool _isExpanded;
Verifying that "sjoshua270.id" is my Blockstack ID. https://onename.com/sjoshua270