示例#1
0
 private void mnuEditTrace_Click(object sender, EventArgs e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         if (DBGridTrace.CurrentRow == null)
         {
             return;
         }
         modCustomerLog  mod = (modCustomerLog)DBGridTrace.CurrentRow.DataBoundItem;
         EditCustomerLog frm = new EditCustomerLog();
         frm.EditItem(mod);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             LoadTraceInfo(mod.CustId);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, clsTranslate.TranslateString("Information"), MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
示例#2
0
 private void toolNew_Click(object sender, EventArgs e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         MTN_CUSTOMER_LIST frmcust = new MTN_CUSTOMER_LIST();
         frmcust.SelectVisible = true;
         if (frmcust.ShowDialog() == DialogResult.OK)
         {
             EditCustomerLog frm = new EditCustomerLog();
             frm.AddItem(Util.retValue1, Util.retValue2);
             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;
     }
 }