private void workOnBtn_Click(object sender, RoutedEventArgs e) { //Set my last time received to Right now when the button was clicked. Start Time from now var t = DateTime.Now; LastTimeReceived = new DateTime(t.Year, t.Month, t.Day, t.Hour, t.Minute, t.Second); //truncate off any milliseconds TimerActionPerformed?.Invoke(this, TimerElementActionEnum.WorkOn); }
private void removeBtn_Click(object sender, RoutedEventArgs e) { TimerActionPerformed?.Invoke(this, TimerElementActionEnum.Remove); }