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(); } }
private void OnFileNewClick() { Context.GetInstance().UpdateQuestions(null); Context.GetInstance().GetQuestionsModel(); QuestionForm.UpdateForm(); }