void minuteUpButton_MouseDown(object sender, MouseEventArgs e) { this.Minutes += 1; timeToUpdate = TimeToUpdate.MinuteUp; System.Threading.Thread.Sleep(500); mouseDownTimer.Start(); }
void generic_MouseUp(object sender, MouseEventArgs e) { mouseDownTimer.Stop(); timeToUpdate = TimeToUpdate.None; }
void hourDownButton_MouseDown(object sender, MouseEventArgs e) { this.Hours -= 1; timeToUpdate = TimeToUpdate.HourDown; System.Threading.Thread.Sleep(500); mouseDownTimer.Start(); }
private void Timer_Tick(object sender, EventArgs e) => TimeToUpdate?.Invoke(null, null);