예제 #1
0
        private void new_Click(object sender, RoutedEventArgs e)
        {
            quizm q = new quizm();

            quizm.num     = int.Parse(numofquestions.Text);
            maker.Content = new quizm();
        }
예제 #2
0
 public void update()
 {
     if (l >= num)
     {
         using (StreamWriter file = new StreamWriter($@".\QuizinatorQuizzes\{sfile}.txt", false))
             foreach (String key in questions.Keys)
             {
                 file.Write($"{key} @@ ");
                 int temp = 1;
                 foreach (String item in questions[key])
                 {
                     if (temp == 5)
                     {
                         file.Write($"{item} ");
                     }
                     else
                     {
                         file.Write($"{item} ~~ ");
                         temp++;
                     }
                 }
                 file.WriteLine();
             }
         make.Content = new mbetween();
     }
     else
     {
         quizm q = new quizm();
         q.qtext.Text  = "";
         q.A1text.Text = "";
         q.A2text.Text = "";
         q.A3text.Text = "";
         q.A4text.Text = "";
         make.Content  = new quizm();
     }
 }