Beispiel #1
0
 private void buttonRunServer_Click(object sender, EventArgs e)
 {
     using (var serverTestLoader = new ServerLoadDialog(connection, true))
     {
         if (serverTestLoader.ShowDialog() == DialogResult.OK)
         {
             if (serverTestLoader.Test != null)
             {
                 using (var passing = new TestPassing(labelSurname.Text + " " + labelName.Text, labelGroup.Text, serverTestLoader.Test, connection, true))
                 {
                     Hide();
                     passing.ShowDialog();
                     Show();
                 }
             }
         }
     }
 }
Beispiel #2
0
 private void btnRun_Click(object sender, EventArgs e)
 {
     using (var studentData = new StudentDataDialog())
     {
         if (studentData.ShowDialog() == DialogResult.OK)
         {
             string fileName;
             var    test = FileProcessor.LoadTestFile(out fileName);
             if (test != null)
             {
                 using (var passing = new TestPassing(studentData.FIO, studentData.Class, test, connection, false))
                 {
                     Hide();
                     passing.ShowDialog();
                     Show();
                 }
             }
         }
     }
 }