Exemplo n.º 1
0
        /// ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
        /// <name>OpenClubRegistrationDialog</name>
        /// <date>31/01/15</date>
        /// <summary>
        /// Opens the club registration dialog
        /// </summary>
        /// ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
        public void OpenClubRegistrationDialog()
        {
            if (m_clubConfigDialog == null)
            {
                m_clubConfigDialog = new ClubConfigurationDialog();
            }

            m_clubConfigDialog.Unloaded -= new System.Windows.RoutedEventHandler(CloseClubRegistrationDialog);
            m_clubConfigDialog.Unloaded += new System.Windows.RoutedEventHandler(CloseClubRegistrationDialog);

            m_clubConfigViewModel          = new ClubConfigurationViewModel(this.model);
            m_clubConfigDialog.DataContext = m_clubConfigViewModel;

            m_clubConfigDialog.Show();
            m_clubConfigDialog.Activate();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Closes the club registration dialog
 /// </summary>
 public void CloseClubRegistrationDialog(object sender, System.Windows.RoutedEventArgs e)
 {
     m_clubConfigDialog    = null;
     m_clubConfigViewModel = null;
 }