예제 #1
0
        private void CreateNewQuestion()
        {
            var AddQuestionPage = new AddQuestionPage(new Question());

            AddQuestionPage.GoHome += GoHome;
            mainFrame.NavigationService.Navigate(AddQuestionPage);
        }
예제 #2
0
        private void EditWindow(Question question)
        {
            var AddQuestionPage = new AddQuestionPage(question);

            AddQuestionPage.GoHome += GoHome;
            AddQuestionPage.buttonAddQuestion.Content = "Edit question";
            mainFrame.NavigationService.Navigate(AddQuestionPage);
        }