private void btnShowDevice_Click(object sender, EventArgs e) { BL.CLS_REPAIRING repai = new BL.CLS_REPAIRING(); PL.SHOW_DEVICE_REPAIRING device_repai = new PL.SHOW_DEVICE_REPAIRING(); if (repairDataGridView.RowCount > 0) { device_repai.txtCName.Text = repairDataGridView.CurrentRow.Cells[1].Value.ToString(); device_repai.txtCPhone.Text = repairDataGridView.CurrentRow.Cells[2].Value.ToString(); device_repai.txtRepai.Text = repairDataGridView.CurrentRow.Cells[5].Value.ToString(); device_repai.txtDate.Text = repairDataGridView.CurrentRow.Cells[11].Value.ToString(); device_repai.txtNot.Text = repairDataGridView.CurrentRow.Cells[10].Value.ToString(); device_repai.ShowDialog(); } else { MessageBox.Show(" عفوا لا توجد اجهزة ف الصيانه"); } }