/// ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- /// <summary> /// Opens the athlete registration dialog /// </summary> /// ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- public void OpenEventRawResultsDialog() { if (m_eventRawResultsDialog == null) { m_eventRawResultsDialog = new EventRawResultsDlg(); } m_eventRawResultsDialog.Unloaded -= new RoutedEventHandler(CloseEventRawResultsDialog); m_eventRawResultsDialog.Unloaded += new RoutedEventHandler(CloseEventRawResultsDialog); m_eventRawResultsViewModel = new EventRawResultsViewModel( this.model.CurrentEvent, this.model.Athletes, this.commonIo, this.logger); m_eventRawResultsDialog.DataContext = m_eventRawResultsViewModel; // Close the import dialog if on display. These should be mutually exclusive. if (eventImportResultsDialog != null) { eventImportResultsDialog.Close(); } m_eventRawResultsDialog.Show(); m_eventRawResultsDialog.Activate(); }
/// ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- /// <summary> /// Closes the event raw results dialog /// </summary> /// <param name="sender">window object</param> /// <param name="e">Event arguments</param> /// ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- public void CloseEventRawResultsDialog(object sender, System.Windows.RoutedEventArgs e) { m_eventRawResultsDialog = null; }