private void ShowOptionsForm()
 {
     if (optionsForm == null)
     {
         optionsForm = new OptionsForm();
         optionsForm.Closed += optionsForm_Closed; // avoid reshowing a disposed form
         optionsForm.Show();
     }
     else { optionsForm.Activate(); }
 }
 // null out the forms so we know to create a new one.
 private void optionsForm_Closed(object sender, EventArgs e)
 {
     optionsForm = null;
 }