private void mnuInsert_Click(object sender, EventArgs e)
 {
     try
     {
         frmSafe f = new frmSafe();
         f.op = "Add";
         f.Form_Load();
         f.ShowDialog();
     }
     catch
     {
     }
 }
 private void mnuEdit_Click(object sender, EventArgs e)
 {
     try
     {
         frmSafe f = new frmSafe();
         f.op = "Edit";
         f.Form_Load();
         f.FillData(dgvStore.CurrentRow.Cells["Code"].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
     {
         frmSafe f = new frmSafe();
         f.Form_Load();
         f.FillData(dgvStore.CurrentRow.Cells["Code"].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();
     }
 }