Exemple #1
0
 private void mnuInsert_Click(object sender, EventArgs e)
 {
     try
     {
         frmIncome_Group f = new frmIncome_Group();
         f.op = "Add";
         f.Form_Load();
         f.ShowDialog();
     }
     catch
     {
     }
 }
Exemple #2
0
 private void mnuEdit_Click(object sender, EventArgs e)
 {
     try
     {
         frmIncome_Group f = new frmIncome_Group();
         f.op = "Edit";
         f.FillData(Convert.ToInt32(dgvTables.CurrentRow.Cells["ID"].Value));
         f.ShowDialog();
     }
     catch
     {
         frmMessage f = new frmMessage();
         f.flag            = 0;
         f.lblMessage.Text = "طبقه بندی انتخابی معتبر نمی باشد";
         f.ShowDialog();
     }
 }
 private void cmbAccount_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyValue == 13)
     {
         txtDescription.Focus();
     }
     else if (e.KeyData == Keys.F12)
     {
         try
         {
             frmIncome_Group f = new frmIncome_Group();
             f.Form_Load();
             f.op = "Add";
             f.ShowDialog();
             Fill_Group();
         }
         catch
         {
         }
     }
 }