public static void ShowForm(Synchy f) { if (form != null) { form.BringToFront(); } else { form = new Preferences(f); form.Show(); } }
private void Preferences_FormClosed(object sender, FormClosedEventArgs e) { form = null; }