public definingForm(string DisplayLabelText, Conf.Definition DefinitionType, Criticals Criticals = null, Definition OriginalDefinition = null) { this.DisplayLabelText = DisplayLabelText; this.Criticals = Criticals; this.IsEditing = (OriginalDefinition != null); this.OriginalDefinition = OriginalDefinition; this.DefinitionType = DefinitionType; InitializeComponent(); }
//Display the options dialog to certain conf options private void optionsToolStripMenuItem_Click(object sender, EventArgs e) { optionsForm Form = new optionsForm(Conf); Form.ShowDialog(); Conf = Form.Conf; Utilities.RunOnStartup(!Conf.RunOnStartup); Properties.Settings.Default.Save(); }
private Definition showDefiningForm(string displayText, Conf.Definition Definition, Criticals Criticals = null, Definition Original = null) { definingForm Form = new definingForm(displayText, Definition, Criticals, Original); Form.ShowDialog(); if (Form.IsFinished) return Form.ReturnDefinition; else return null; }