private void mnuInsert_Click(object sender, EventArgs e) { try { frmTransfer_BedBes f = new frmTransfer_BedBes(); f.op = "Add"; f.Form_Load(); f.ShowDialog(); } catch { } }
private void mnuEdit_Click(object sender, EventArgs e) { try { frmTransfer_BedBes f = new frmTransfer_BedBes(); f.op = "Edit"; f.Fill_Data(Guid.Parse(dgvProduct.CurrentRow.Cells["Guid1"].Value.ToString())); f.ShowDialog(); } catch { frmMessage f = new frmMessage(); f.flag = 0; f.lblMessage.Text = " انتقال انتخابی معتبر نمی باشد"; f.ShowDialog(); } }
private void mnuView_Click(object sender, EventArgs e) { try { frmTransfer_BedBes f = new frmTransfer_BedBes(); f.Fill_Data(Guid.Parse(dgvProduct.CurrentRow.Cells["Guid1"].Value.ToString())); f.grpAccount.Enabled = false; f.btnFinish.Enabled = false; f.ShowDialog(); } catch { frmMessage f = new frmMessage(); f.flag = 0; f.lblMessage.Text = " انتقال انتخابی معتبر نمی باشد"; f.ShowDialog(); } }