예제 #1
0
        private void SetFastClockStartDateAndTime()
        {
            string date = DatePickerDate.Text;
            string time = TextBoxTime.Text;

            _dateTime = StringToDateTime(date, time);
            FastClock.GetInstance(_dateTime);
        }
예제 #2
0
        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();
        }
예제 #4
0
        private void CheckBoxClockRuns_Click(object sender, RoutedEventArgs e)
        {
            FastClock fastClock = FastClock.GetInstance(_dateTime);

            fastClock.IsRunning = !fastClock.IsRunning;
        }
예제 #5
0
 private void MetroWindow_Initialized(object source, EventArgs e)
 {
     _fastClock = FastClock.Instance;
 }
예제 #6
0
 private void MainWindow_OnInitialized(object sender, EventArgs e)
 {
     _fastClock = new FastClock(DateTime.Now);
     _fastClock.OneMinuteIsOver += FastClockOneMinuteIsOver;
 }