private void materialFlatButton2_Click(object sender, EventArgs e) { frmequipmentdiagnosis equipdiagnose = new frmequipmentdiagnosis(); equipdiagnose.Show(); this.Hide(); }
private void pictureBox1_Click(object sender, EventArgs e) { this.Close(); frmequipmentdiagnosis equipdiagnosis = new frmequipmentdiagnosis(); equipdiagnosis.Show(); }
private void kdvequipdiagnosis_CellContentClick(object sender, DataGridViewCellEventArgs e) { frmequipmentdiagnosis select = new frmequipmentdiagnosis(); select.txtedid.Text = kdvequipdiagnosis.CurrentRow.Cells [0].Value.ToString(); select.txtreportedproblem.Text = kdvequipdiagnosis.CurrentRow.Cells [1].Value.ToString(); select.txtdiagnosisdone.Text = kdvequipdiagnosis.CurrentRow.Cells [2].Value.ToString(); select.cmbxprogress.Text = kdvequipdiagnosis.CurrentRow.Cells [3].Value.ToString(); select.cmbxtechassigned.Text = kdvequipdiagnosis.CurrentRow.Cells [4].Value.ToString(); select.txtduration.Text = kdvequipdiagnosis.CurrentRow.Cells [5].Value.ToString(); select.cmbxresponsetime.Text = kdvequipdiagnosis.CurrentRow.Cells [6].Value.ToString(); select.cmbxreason.Text = kdvequipdiagnosis.CurrentRow.Cells [7].Value.ToString(); select.cmbxcomment.Text = kdvequipdiagnosis.CurrentRow.Cells [8].Value.ToString(); select.txtequipmentid.Text = kdvequipdiagnosis.CurrentRow.Cells [9].Value.ToString(); select.txtequipmentname.Text = kdvequipdiagnosis.CurrentRow.Cells [10].Value.ToString(); select.txtequipmentserial.Text = kdvequipdiagnosis.CurrentRow.Cells [11].Value.ToString(); select.txtclientname.Text = kdvequipdiagnosis.CurrentRow.Cells [10].Value.ToString(); select.txturgency.Text = kdvequipdiagnosis.CurrentRow.Cells [11].Value.ToString(); //keen (); select.txtedid.Enabled = false; select.txtreportedproblem.Enabled = false; select.txtdiagnosisdone.Enabled = false; select.cmbxprogress.Enabled = false; select.cmbxtechassigned.Enabled = false; select.txtduration.Enabled = false; select.cmbxresponsetime.Enabled = false; select.cmbxreason.Enabled = false; select.cmbxcomment.Enabled = false; //Remain unchanged even after selecting select.txtequipmentid.Enabled = false; select.txtequipmentname.Enabled = false; select.txtequipmentserial.Enabled = false; select.txtclientname.Enabled = false; select.txturgency.Enabled = false; select.ShowDialog(); this.Close(); }