Exemplo n.º 1
0
 private async void mnuIns_Click(object sender, EventArgs e)
 {
     try
     {
         var frm = new frmSimcard_Main();
         if (frm.ShowDialog() == DialogResult.OK)
         {
             await LoadData(txtSearch.Text);
         }
     }
     catch (Exception exception)
     {
         WebErrorLog.ErrorInstence.StartErrorLog(exception);
     }
 }
Exemplo n.º 2
0
 private async void mnuEdit_Click(object sender, EventArgs e)
 {
     try
     {
         if (DGrid.RowCount == 0)
         {
             return;
         }
         if (DGrid.CurrentRow == null)
         {
             return;
         }
         var _guid = (Guid)DGrid[dgGuid.Index, DGrid.CurrentRow.Index].Value;
         var frm   = new frmSimcard_Main(_guid);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             await LoadData(txtSearch.Text);
         }
     }
     catch (Exception exception)
     {
         WebErrorLog.ErrorInstence.StartErrorLog(exception);
     }
 }