コード例 #1
0
 public void AddQuestionWindow(AddQuestionListWindow window)
 {
     if (Valid(true))
     {
         ErrorMessage = null;
         var QuestionWindow = new AddQuestionWindow();
         QuestionWindow.Owner = window;
         QuestionWindow.Show();
     }
 }
コード例 #2
0
 public void AddQuestionWindow(AddQuestionListWindow parent)
 {
     if (_questionWindow == null)
     {
         _questionWindow       = new AddQuestionWindow();
         _questionWindow.Owner = parent;
         _questionWindow.Show();
     }
     else
     {
         try
         {
             _questionWindow.Show();
         }
         catch (Exception e)
         {
             _questionWindow       = new AddQuestionWindow();
             _questionWindow.Owner = parent;
             _questionWindow.Show();
         }
     }
 }
コード例 #3
0
 private void ShowAddQuestion()
 {
     SelectedQuestion = new QuestionVM();
     AddQuestionWindow = new AddQuestionWindow();
     AddQuestionWindow.Show();
 }
コード例 #4
0
ファイル: QuestionListVM.cs プロジェクト: ThijsReba/KwisSpel
 public void ShowAddQuestion()
 {
     _addQuestionWindow = new AddQuestionWindow();
     _addQuestionWindow.Show();
 }
コード例 #5
0
 private void CloseWindow(AddQuestionWindow window)
 {
     _questionWindow = null;
     window.Close();
 }
コード例 #6
0
        private void AddQuestion()
        {
            AddQuestionWindow addQuestionWindow = new AddQuestionWindow();

            addQuestionWindow.Show();
        }