private void ToAddQuestion(Window window)
        {
            AddEditQuestion   addEdit   = new AddEditQuestion();
            AddEditQuestionVM addEditVM = new AddEditQuestionVM(WindowsTypes.Browser, selectedTest.Ref);

            addEdit.DataContext           = addEditVM;
            addEdit.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            addEdit.Show();
            window.Close();
        }
        private void ToEditQuestion(Window window)
        {
            AddEditQuestion   addEdit   = new AddEditQuestion();
            AddEditQuestionVM addEditVM = new AddEditQuestionVM(WindowsTypes.Browser, SelectedQuestion.RefTest, SelectedQuestion.Ref);// tu jeszcze dodac id wybranego pytania

            addEdit.DataContext           = addEditVM;
            addEdit.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            addEdit.Show();
            window.Close();
        }
Example #3
0
        private void ToEditQuestion(Window window)
        {
            AddEditQuestion   addEdit     = new AddEditQuestion();
            AddEditQuestionVM dataContext = new AddEditQuestionVM(WindowsTypes.Test, ActualQuestion.RefTest, ActualQuestion.Ref);

            addEdit.DataContext           = dataContext;
            addEdit.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            addEdit.Show();
            window.Close();
        }