private void SetFastClockStartDateAndTime() { string date = DatePickerDate.Text; string time = TextBoxTime.Text; _dateTime = StringToDateTime(date, time); FastClock.GetInstance(_dateTime); }
private void MetroWindow_Initialized(object sender, EventArgs e) { _dateTime = GetCurrentTime(); DatePickerDate.SelectedDate = DateTime.Today; TextBoxTime.Text = _dateTime.ToShortTimeString(); FastClock.GetInstance(_dateTime); }
private void Window_Initialized(object sender, EventArgs e) { FastClock clock = FastClock.Instance; clock.IsRunning = true; clock.OneMinuteIsOver += OnOneMinuteIsOver; new SlotMachineWindow("Limesstrasse", PrintTicket).Show(); new SlotMachineWindow("Landstrasse", PrintTicket).Show(); }
private void CheckBoxClockRuns_Click(object sender, RoutedEventArgs e) { FastClock fastClock = FastClock.GetInstance(_dateTime); fastClock.IsRunning = !fastClock.IsRunning; }
private void MetroWindow_Initialized(object source, EventArgs e) { _fastClock = FastClock.Instance; }
private void MainWindow_OnInitialized(object sender, EventArgs e) { _fastClock = new FastClock(DateTime.Now); _fastClock.OneMinuteIsOver += FastClockOneMinuteIsOver; }