Beispiel #1
0
        private void RemoveTutorialDialog()
        {
            if (m_tutorialCancelButton != null)
            {
                m_tutorialCancelButton.Click -= CancelTutorialDialog;
                m_tutorialCancelButton        = null;
            }

            if (m_tutorialDialogBox != null)
            {
                m_tutorialDialogBox.Close();
                m_tutorialDialogBox = null;
            }
        }
Beispiel #2
0
        private void ShowTutorialDialog()
        {
            Dismiss();

            m_tutorialDialogBox       = new MyPinCreationDetailsTutorialDialogBox("Pin Created", "Your pin has been created.");
            m_tutorialDialogBox.Owner = m_currentWindow;
            Point pos = m_currentWindow.PointToScreen(new Point((m_currentWindow.ActualWidth - m_tutorialDialogBox.Width) / 2, m_tutorialTopMargin));

            m_tutorialDialogBox.Left = pos.X;
            m_tutorialDialogBox.Top  = pos.Y;
            m_tutorialDialogBox.Show();

            m_tutorialCancelButton        = (Button)m_tutorialDialogBox.FindName("CancelButton");
            m_tutorialCancelButton.Click += CancelTutorialDialog;
        }