public void AddChildren() { this.Children.Clear(); var classNode = new VMDirSchemaClassBaseNode(this.ServerNode); this.Children.Add(classNode); var attrNode = new VMDirSchemaAttributeBaseNode(this.ServerNode); this.Children.Add(attrNode); }
void PopulateChildren() { if (IsLoggedIn) { this.Children.Clear(); var classNode = new VMDirSchemaClassBaseNode(this); this.Children.Add(classNode); var attrNode = new VMDirSchemaAttributeBaseNode(this); this.Children.Add(attrNode); } else { MMCDlgHelper.ShowException(new Exception(MMCUIConstants.UNABLE_TO_LOGIN)); } }