public static FileGroupPropertiesDialog NewPropertiesDialog(FileGroup group, Form parentForm) { FileGroupPropertiesDialog fileGroupPropertiesDialog = new FileGroupPropertiesDialog(group, group.Text + " File Properties", "OK", parentForm); fileGroupPropertiesDialog.CreateControls(group); return(fileGroupPropertiesDialog); }
public override void DoPropertiesDialog(Form parentForm, string activeTabName) { using (FileGroupPropertiesDialog fileGroupPropertiesDialog = FileGroupPropertiesDialog.NewPropertiesDialog(this, parentForm)) { fileGroupPropertiesDialog.SetActiveTab(activeTabName); if (fileGroupPropertiesDialog.ShowDialog() == DialogResult.OK) { UpdateSettings(fileGroupPropertiesDialog); ServerTree.Instance.OnNodeChanged(this, ChangeType.PropertyChanged); } } }