Beispiel #1
0
 private void загрузитьССервераToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (var loadDialog = new ServerLoadDialog(connection, false))
     {
         if (loadDialog.ShowDialog() == DialogResult.OK)
         {
             if (loadDialog.Test != null)
             {
                 Text        = "OleXis Test: Редактор тестов - " + loadDialog.TestName;
                 testForEdit = loadDialog.Test;
                 InitTestControls();
             }
         }
     }
 }
Beispiel #2
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();
                 }
             }
         }
     }
 }