Esempio n. 1
0
 private void toolEdit_Click(object sender, EventArgs e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         if (DBGrid.CurrentRow == null)
         {
             return;
         }
         modAccOtherPayableForm  mod = (modAccOtherPayableForm)DBGrid.CurrentRow.DataBoundItem;
         EditAccOtherPayableForm frm = new EditAccOtherPayableForm();
         frm.EditItem(mod.Id);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             LoadData();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, clsTranslate.TranslateString("Information"), MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Esempio n. 2
0
 private void toolNew_Click(object sender, EventArgs e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         EditAccOtherPayableForm frm = new EditAccOtherPayableForm();
         frm.AddItem(Util.retValue1);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             rbStatus0.Checked = true;
             LoadData();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, clsTranslate.TranslateString("Information"), MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }