private void MenuPreferences_Click(object sender, RoutedEventArgs e) { try { windowPreferences preferences = new windowPreferences(); preferences.Register(this.theWatchManager); preferences.Show(); } catch { System.Windows.MessageBox.Show("Error Loading Preferences Window."); } }