public static SmartGroup Create(XmlNode xmlNode, GroupBase parent, ICollection <string> errors) { SmartGroup smartGroup = new SmartGroup(); smartGroup.FinishConstruction(parent); smartGroup.ReadXml(xmlNode, errors); smartGroup.Text = smartGroup.Properties.GroupName.Value; return(smartGroup); }
public static SmartGroup Create(SmartGroupPropertiesDialog dlg) { SmartGroup smartGroup = dlg.AssociatedNode as SmartGroup; smartGroup.UpdateSettings(dlg); smartGroup.FinishConstruction(dlg.PropertiesPage.ParentGroup); smartGroup.Refresh(); return(smartGroup); }