コード例 #1
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 frmPardakhtMain(guid);
                if (frm.ShowDialog() == DialogResult.OK)
                {
                    await LoadDataAsync(txtSearch.Text);
                }
            }
            catch (Exception ex)
            {
                WebErrorLog.ErrorInstence.StartErrorLog(ex);
            }
        }
コード例 #2
0
 private async void mnuIns_Click(object sender, EventArgs e)
 {
     try
     {
         var frm = new frmPardakhtMain();
         if (frm.ShowDialog() == DialogResult.OK)
         {
             await LoadDataAsync();
         }
     }
     catch (Exception ex)
     {
         WebErrorLog.ErrorInstence.StartErrorLog(ex);
     }
 }