コード例 #1
0
        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);
        }
コード例 #2
0
        public static SmartGroup Create(SmartGroupPropertiesDialog dlg)
        {
            SmartGroup smartGroup = dlg.AssociatedNode as SmartGroup;

            smartGroup.UpdateSettings(dlg);
            smartGroup.FinishConstruction(dlg.PropertiesPage.ParentGroup);
            smartGroup.Refresh();
            return(smartGroup);
        }