private void optionenToolStripMenuItem2_Click(object sender, EventArgs e) { frmOptions fOpt = new frmOptions(Options); fOpt.Top = (this.Top + (this.Height / 2)) - (fOpt.Height / 2); fOpt.Left = (this.Left + (this.Width / 2)) - (fOpt.Width / 2); fOpt.Show(this); //exit if canceled if (fOpt.Cancel == true) { return; } Options = fOpt.OptionProp; this.TopMost = Options.PropTopMost; }
public frmOptions(OptionProperties opt) { InitializeComponent(); OptionProp = opt; }