/// <summary> /// Opens the athlete summary dialog /// </summary> public void OpenClubSummaryDialog() { if (clubSummaryDialog == null) { clubSummaryDialog = new ClubSummaryDialog(); } clubSummaryDialog.Unloaded -= new RoutedEventHandler(CloseClubSummaryDialog); clubSummaryDialog.Unloaded += new RoutedEventHandler(CloseClubSummaryDialog); clubSummaryViewModel = new ClubSummaryViewModel(this.model); clubSummaryDialog.DataContext = clubSummaryViewModel; clubSummaryDialog.Show(); clubSummaryDialog.Activate(); }
/// <summary> /// Closes the athlete summary dialog /// </summary> public void CloseClubSummaryDialog(object sender, System.Windows.RoutedEventArgs e) { clubSummaryDialog = null; }