public Mission(EnumMission mtype) { this.type = mtype; }
public void updateForm() { if (comboBox1.Text == "Multiple Choice") { textBox1.Text = ""; textBox2.Text = ""; textBox3.Text = ""; textBox4.Text = ""; textBox5.Text = ""; textBox6.Text = ""; listBox1.Items.Clear(); listBox1.Visible = false; listBox1.Visible = true; missiontype = EnumMission.MultipleChoice; label2.Visible = false; textBox1.Visible = false; this.Size = new Size(449, 465); radioButton1.Visible = true; radioButton2.Visible = true; radioButton3.Visible = true; radioButton4.Visible = true; textBox3.Visible = true; textBox4.Visible = true; textBox5.Visible = true; textBox6.Visible = true; label3.Visible = true; textBox2.Visible = true; buttonFinish.Location = new Point(179, 392); buttonAdd.Visible = true; buttonAdd.Location = new Point(179, 213); buttonRemove.Visible = true; buttonRemove.Location = new Point(179, 242); listBox1.Location = new Point(12, 289); numericUpDown2.Location = new Point(12, 367); label4.Location = new Point(49, 369); numericUpDown3.Location = new Point(136, 367); label5.Location = new Point(200, 369); checkBox1.Location = new Point(258, 367); numericUpDown4.Location = new Point(361, 364); } else if (comboBox1.Text == "Free Response") { questionList.Clear(); textBox1.Text = ""; textBox2.Text = ""; textBox3.Text = ""; textBox4.Text = ""; textBox5.Text = ""; textBox6.Text = ""; listBox1.Items.Clear(); listBox1.Visible = false; listBox1.Visible = true; missiontype = EnumMission.FreeResponse; label2.Visible = false; textBox1.Visible = false; this.Size = new Size(449, 387); radioButton1.Visible = false; radioButton2.Visible = false; radioButton3.Visible = false; radioButton4.Visible = false; textBox3.Visible = false; textBox4.Visible = false; textBox5.Visible = false; textBox6.Visible = false; label3.Visible = true; textBox2.Visible = true; buttonFinish.Location = new Point(179, 317); buttonAdd.Visible = true; buttonAdd.Location = new Point(179, 98); buttonRemove.Visible = true; buttonRemove.Location = new Point(179, 128); listBox1.Location = new Point(12, 157); numericUpDown2.Location = new Point(12, 241); label4.Location = new Point(49, 243); numericUpDown3.Location = new Point(136, 241); label5.Location = new Point(200, 243); checkBox1.Location = new Point(258, 242); numericUpDown4.Location = new Point(361, 241); } else if (comboBox1.Text == "File Upload") //441, 212 { questionList.Clear(); textBox1.Text = ""; textBox2.Text = ""; textBox3.Text = ""; textBox4.Text = ""; textBox5.Text = ""; textBox6.Text = ""; listBox1.Items.Clear(); listBox1.Visible = false; listBox1.Visible = false; missiontype = EnumMission.FileUpload; label2.Visible = true; textBox1.Visible = true; this.Size = new Size(441, 300); radioButton1.Visible = false; radioButton2.Visible = false; radioButton3.Visible = false; radioButton4.Visible = false; textBox3.Visible = false; textBox4.Visible = false; textBox5.Visible = false; textBox6.Visible = false; label3.Visible = false; textBox2.Visible = false; buttonFinish.Location = new Point(179, 218); buttonAdd.Visible = false; buttonRemove.Visible = false; numericUpDown2.Location = new Point(12, 176); label4.Location = new Point(49, 178); numericUpDown3.Location = new Point(136, 176); label5.Location = new Point(200, 178); checkBox1.Location = new Point(258, 177); numericUpDown4.Location = new Point(361, 176); } else if (comboBox1.Text == "Text") { questionList.Clear(); textBox1.Text = ""; textBox2.Text = ""; textBox3.Text = ""; textBox4.Text = ""; textBox5.Text = ""; textBox6.Text = ""; listBox1.Items.Clear(); listBox1.Visible = false; missiontype = EnumMission.FileUpload; label2.Visible = true; textBox1.Visible = true; this.Size = new Size(441, 300); radioButton1.Visible = false; radioButton2.Visible = false; radioButton3.Visible = false; radioButton4.Visible = false; textBox3.Visible = false; textBox4.Visible = false; textBox5.Visible = false; textBox6.Visible = false; label3.Visible = false; textBox2.Visible = false; buttonFinish.Location = new Point(179, 218); buttonAdd.Visible = false; buttonRemove.Visible = false; numericUpDown2.Location = new Point(12, 176); label4.Location = new Point(49, 178); numericUpDown3.Location = new Point(136, 176); label5.Location = new Point(200, 178); checkBox1.Location = new Point(258, 177); numericUpDown4.Location = new Point(361, 176); } }