Esempio n. 1
0
        /// <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();
        }
Esempio n. 2
0
 /// <summary>
 /// Closes the athlete summary dialog
 /// </summary>
 public void CloseAthleteSummaryDialog(object sender, System.Windows.RoutedEventArgs e)
 {
     m_athleteSummaryDialog = null;
 }