private void metroButton6_Click(object sender, EventArgs e) { placeExam a = new placeExam(this); a.metroButton2.Enabled = false; a.Show(); }
private void metroButton1_Click(object sender, EventArgs e) { placeExam a1 = new placeExam(this); a1.metroLabel21.Text = this.metroGrid1.CurrentRow.Cells[0].Value.ToString(); a1.metroTextBox1.Text = this.metroGrid1.CurrentRow.Cells[1].Value.ToString(); a1.metroTextBox2.Text = this.metroGrid1.CurrentRow.Cells[2].Value.ToString(); a1.metroTextBox3.Text = this.metroGrid1.CurrentRow.Cells[3].Value.ToString(); a1.metroComboBox1.Text = this.metroGrid1.CurrentRow.Cells[4].Value.ToString(); a1.metroComboBox5.Text = this.metroGrid1.CurrentRow.Cells[5].Value.ToString(); a1.dateTimePicker1.Text = this.metroGrid1.CurrentRow.Cells[6].Value.ToString(); a1.metroComboBox3.Text = this.metroGrid1.CurrentRow.Cells[7].Value.ToString(); a1.metroTextBox10.Text = this.metroGrid1.CurrentRow.Cells[8].Value.ToString(); a1.metroTextBox5.Text = this.metroGrid1.CurrentRow.Cells[9].Value.ToString(); a1.metroTextBox4.Text = this.metroGrid1.CurrentRow.Cells[10].Value.ToString(); a1.metroTextBox9.Text = this.metroGrid1.CurrentRow.Cells[11].Value.ToString(); a1.metroTextBox6.Text = this.metroGrid1.CurrentRow.Cells[12].Value.ToString(); a1.metroComboBox4.Text = this.metroGrid1.CurrentRow.Cells[13].Value.ToString(); a1.metroTextBox8.Text = this.metroGrid1.CurrentRow.Cells[14].Value.ToString(); a1.metroTextBox7.Text = this.metroGrid1.CurrentRow.Cells[15].Value.ToString(); a1.metroButton1.Enabled = false; this.Hide(); a1.Show(); }