private void btn_editFrontSynonyms_Click(object sender, EventArgs e) { var editWordSynonyms = new EditWordSynonyms(Card, 1); if (editWordSynonyms.ShowDialog() == DialogResult.OK) { Card.FrontSynonyms = editWordSynonyms.Synonyms; QuizCore.SaveQuiz(Quiz, Quiz.QuizIdentity.FindQuizPath()); } }
private void btn_editWord2_Click(object sender, EventArgs e) { var editWord = new EditWord(Card.Back); if (editWord.ShowDialog() == DialogResult.OK) { Card.Back = editWord.Word; QuizCore.SaveQuiz(Quiz, Quiz.QuizIdentity.FindQuizPath()); UpdateSideLabels(); } }
private void Finish() { sfd_quiz.InitialDirectory = ConfigManager.Config.StorageConfig.DefaultQuizSaveFolder; if (sfd_quiz.ShowDialog() != DialogResult.OK) { return; } QuizPath = sfd_quiz.FileName; var quiz = new Quiz(Language1, Language2, MetaData.QUIZ_FILE_FORMAT_VERSION); quiz.Cards = Cards.ToList(); QuizCore.SaveQuiz(quiz, QuizPath); DialogResult = DialogResult.OK; }