Beispiel #1
0
 public MoveQuestion(Test TestObject, CreateTest CreateTestForm)
 {
     this.TestObject     = TestObject;
     this.CreateTestForm = CreateTestForm;
     InitializeComponent();
     CurrentNumberLabel.Text += " " + TestObject._Counter;
 }
Beispiel #2
0
 /// <summary>
 /// Обработчик события нажатия на кнопку редактирования теста.
 /// </summary>
 private void EditToolStripMenuItem_Click(object sender, EventArgs e)
 {
     CreateTestForm = new CreateTest(this);
     CreateTestForm.Controls.Find("CreateQuestionPanel", false)[0].Visible  = true;
     CreateTestForm.Controls.Find("CreateQuestionPanel", false)[0].Location = new Point(3, 8);
     CreateTestForm.Controls.Find("CreateTestPanel", false)[0].Visible      = false;
     CreateTestForm.Controls.Find("BackButton", false)[0].Enabled           = false;
     CreateTestForm.Controls.Find("BackButton", false)[0].Visible           = true;
     CreateTestForm.Controls.Find("NextButton", false)[0].Visible           = true;
     if (OpenFileDialog.ShowDialog() == DialogResult.OK)
     {
         CreateTestForm.Show();
         Visible = false;
         CreateTestForm.TestObject = LoadTest(OpenFileDialog.FileName);
         CreateTestForm.Text       = "Редактирование теста " + "[" + CreateTestForm.TestObject.Name + "]";
         if (CreateTestForm.TestObject.NumOfQuestions == 1)
         {
             CreateTestForm.Controls.Find("NextButton", false)[0].Visible = false;
         }
         CreateTestForm.TestObject._Counter = 1;
         CreateTestForm.TestObject.Reconstitute(CreateTestForm, CreateTestForm.TestObject.GetQuestion(1), false);
     }
     else
     {
         Visible = true;
     }
 }
Beispiel #3
0
 /// <summary>
 /// Обработчик события нажатия на кнопку ntcnbhjdfybz
 /// </summary>
 private void TestingToolStripMenuItem_Click(object sender, EventArgs e)
 {
     CreateTestForm = new CreateTest(this);
     if (OpenFileDialog.ShowDialog() == DialogResult.OK)
     {
         CreateTestForm.FlagOfTesting = true;
         CreateTestForm.TestObject    = LoadTest(OpenFileDialog.FileName);
         CreateTestForm.Show();
         CreateTestForm.Text = "Тестирование " + "[" + CreateTestForm.TestObject.Name + "]";
         Visible             = false;
         CreateTestForm.TestObject.ToPrepareForTest(CreateTestForm);
     }
     else
     {
         Visible = true;
     }
 }
Beispiel #4
0
 public PreviewTest(CreateTest CreateTestForm)
 {
     InitializeComponent();
     this.CreateTestForm = CreateTestForm;
 }
Beispiel #5
0
 /// <summary>
 /// Обработчик события нажатия на кнопку создания теста.
 /// </summary>
 private void CreateToolStripMenuItem_Click(object sender, EventArgs e)
 {
     CreateTestForm = new CreateTest(this);
     Visible        = false;
     CreateTestForm.Show();
 }
Beispiel #6
0
 public PreviewQuestion(CreateTest InputForm, Question _Question)
 {
     this.InputForm = InputForm;
     InitializeComponent();
 }