Пример #1
0
        public static DefaultGroupPropertiesDialog NewPropertiesDialog(GroupBase group, Form parentForm)
        {
            DefaultGroupPropertiesDialog defaultGroupPropertiesDialog = new DefaultGroupPropertiesDialog(group, parentForm);

            defaultGroupPropertiesDialog.CreateControls(group);
            defaultGroupPropertiesDialog.PopulateCredentialsProfiles(null);
            defaultGroupPropertiesDialog.PopulateCredentialsManagementTab(Program.CredentialsProfiles);
            return(defaultGroupPropertiesDialog);
        }
Пример #2
0
 public override void DoPropertiesDialog(Form parentForm, string activeTabName)
 {
     using (DefaultGroupPropertiesDialog defaultGroupPropertiesDialog = DefaultGroupPropertiesDialog.NewPropertiesDialog(this, parentForm))
     {
         defaultGroupPropertiesDialog.SetActiveTab(activeTabName);
         if (defaultGroupPropertiesDialog.ShowDialog() == DialogResult.OK)
         {
             UpdateSettings(defaultGroupPropertiesDialog);
             ServerTree.Instance.OnGroupChanged(ServerTree.Instance.RootNode, ChangeType.PropertyChanged);
             Program.Preferences.NeedToSave = true;
         }
     }
 }