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