예제 #1
0
 private void butDelete_Click(object sender, System.EventArgs e)
 {
     if (!MsgBox.Show(this, true, "Delete this clock event?"))
     {
         return;
     }
     ClockEvents.Delete(ClockEventCur);
     DialogResult = DialogResult.OK;
 }
예제 #2
0
 private void butDelete_Click(object sender, System.EventArgs e)
 {
     if (!MsgBox.Show(this, true, "Delete this clock event?"))
     {
         return;
     }
     ClockEvents.Delete(ClockEventCur.ClockEventNum);
     SecurityLogs.MakeLogEntry(Permissions.TimecardDeleteEntry, 0,
                               "Original entry: " + ClockEventCur.TimeEntered1.ToString());
     DialogResult = DialogResult.OK;
 }