private void MetroWindow_Initialized(object sender, EventArgs e)
 {
     DatePickerDate.SelectedDate = DateTime.Today;
     TextBoxTime.Text            = DateTime.Now.ToShortTimeString();
     _fastClock = EventsDemo.FastClock.FastClock.Instance;
     _fastClock.OnMinuteIsOver += FastClockOneMinuteIsOver;
 }
Esempio n. 2
0
        public AnalogClock(FastClock.FastClock fastClock)
        {
            InitializeComponent();

            _fastClock = fastClock;
            _fastClock.OnMinuteIsOver += FastClockOneMinuteIsOver;
            // Create an instance of RotateTransform objects
            MinHandTr  = new RotateTransform();
            HourHandTr = new RotateTransform();
        }
Esempio n. 3
0
 public DigitalClock(FastClock.FastClock fastClock)
 {
     InitializeComponent();
     _fastClock = fastClock;
     _fastClock.OnMinuteIsOver += FastClockOneMinuteIsOver;
 }