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; }
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; }