/// <summary> /// Opens the athlete registration dialog /// </summary> public void OpenAthleteRegistrationDialog() { if (m_athleteConfigDialog == null) { m_athleteConfigDialog = new AthleteConfigurationDialog(); } m_athleteConfigDialog.Unloaded -= new System.Windows.RoutedEventHandler(CloseAthleteRegistrationDialog); m_athleteConfigDialog.Unloaded += new System.Windows.RoutedEventHandler(CloseAthleteRegistrationDialog); m_athleteConfigViewModel = new AthleteConfigurationViewModel( this.model, this.seriesConfigManager); m_athleteConfigDialog.DataContext = m_athleteConfigViewModel; m_athleteConfigDialog.Show(); m_athleteConfigDialog.Activate(); }
/// <summary> /// Closes the athlete registration dialog /// </summary> public void CloseAthleteRegistrationDialog(object sender, System.Windows.RoutedEventArgs e) { m_athleteConfigDialog = null; }