private void mnuUpSingle_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 log = SmsLogBussines.Get(guid); if (log == null) { return; } var list = new List <string> { log.MessageId.ToString() }; UpdateStatus(list); } catch (Exception ex) { WebErrorLog.ErrorInstence.StartErrorLog(ex); } }
private void DGrid_CellClick(object sender, DataGridViewCellEventArgs e) { try { if (DGrid.RowCount <= 0) { return; } if (DGrid.CurrentRow == null) { return; } var guid = (Guid)DGrid[dgGuid.Index, DGrid.CurrentRow.Index].Value; var log = SmsLogBussines.Get(guid); if (log == null) { return; } txtMessage.Text = log.Message; } catch (Exception ex) { WebErrorLog.ErrorInstence.StartErrorLog(ex); } }