private void button2_Click(object sender, EventArgs e) { if (editcustid != null) { EditCustomer edtcustm = new EditCustomer(this.editcustid); edtcustm.Show(); } else { MessageBox.Show("Please Select a Grid Row by clicking on Row Hader", "Edit Customer", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void button2_Click(object sender, EventArgs e) { if ( editcustid != null) { EditCustomer edtcustm = new EditCustomer(this.editcustid); edtcustm.Show(); } else { MessageBox.Show("Please Select a Grid Row by clicking on Row Hader", "Edit Customer", MessageBoxButtons.OK, MessageBoxIcon.Information); } }