public void ShowPreferencesWindow(Object sender, EventArgs e) { if (!preferences.Visible) { preferences.ShowDialog(); } }