public static CompilerOptionsForm Form = null; // A global static intance of the CompilerOptionsForm. public CompilerOptionsForm() { Form = this; // // Required for Windows Form Designer support // InitializeComponent(); importForm = new ImportForm(); warnings.DropDownStyle = ComboBoxStyle.DropDownList; Compiler.Options.Header.TextChanged += handler = new EventHandler(Invalidate); Reset(); }
private void impClick(object sender, System.EventArgs e) { if (importForm.IsDisposed) { importForm = new ImportForm(); } importForm.Reset(); if (importForm.WindowState == FormWindowState.Minimized) { importForm.WindowState = FormWindowState.Normal; } importForm.Show(); importForm.BringToFront(); }