/// <summary> /// Opens the athlete summary dialog /// </summary> public void OpenAthleteSummaryDialog() { if (m_athleteSummaryDialog == null) { m_athleteSummaryDialog = new AthleteSummaryDialog(); } m_athleteSummaryDialog.Unloaded -= new RoutedEventHandler(CloseAthleteSummaryDialog); m_athleteSummaryDialog.Unloaded += new RoutedEventHandler(CloseAthleteSummaryDialog); m_athleteSummaryDialog.DataContext = new AthleteSummaryViewModel( this.model, this.normalisationConfigManager, this.resultsConfigurationManager); m_athleteSummaryDialog.Show(); m_athleteSummaryDialog.Activate(); }
/// <summary> /// Closes the athlete summary dialog /// </summary> public void CloseAthleteSummaryDialog(object sender, System.Windows.RoutedEventArgs e) { m_athleteSummaryDialog = null; }