Esempio n. 1
0
        private void OnFileOpenClick()
        {
            OpenFileDialog openFileDialog = new OpenFileDialog();
            DialogResult   dialogResult   = openFileDialog.ShowDialog();

            if (dialogResult == DialogResult.OK)
            {
                string fileName = openFileDialog.FileName;
                List <QuestionModel> questions = Load(fileName);
                Context.GetInstance().UpdateQuestions(new QuestionsModel(fileName, questions));
                QuestionForm.UpdateForm();
            }
        }
Esempio n. 2
0
 private void OnFileNewClick()
 {
     Context.GetInstance().UpdateQuestions(null);
     Context.GetInstance().GetQuestionsModel();
     QuestionForm.UpdateForm();
 }