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); }
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; } } }