private void optionsToolStripMenuItem_Click(object sender, EventArgs e) { if (workQueued) { MessageBox.Show("Please wait until the current operation has finished", Application.ProductName); } else { AdvancedOptionsForm optionsForm = new AdvancedOptionsForm(); optionsForm.ShowDialog(); } }