private void InitContent()
 {
     DataContext = Model = new AppBarModel();
     
     _clockTimer = new DispatcherTimer();
     _clockTimer.Interval = TimeSpan.FromSeconds(1);
     _clockTimer.Tick += new EventHandler(ClockTimer_Tick);
     _clockTimer.Start();
     
     _hardwareTimer = new DispatcherTimer();
     _hardwareTimer.Interval = TimeSpan.FromMilliseconds(Properties.Settings.Default.PollingInterval);
     _hardwareTimer.Tick += new EventHandler(HardwareTimer_Tick);
     _hardwareTimer.Start();
 }
Example #2
0
        private void ModelReady(AppBarModel model)
        {
            DataContext = Model = model;
            model.Start();

            Ready = true;

            if (_openSettings)
            {
                _openSettings = false;

                (Application.Current as App).OpenSettings();
            }
        }