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; }
public AnalogClock(FastClock.FastClock fastClock) { InitializeComponent(); _fastClock = fastClock; _fastClock.OnMinuteIsOver += FastClockOneMinuteIsOver; // Create an instance of RotateTransform objects MinHandTr = new RotateTransform(); HourHandTr = new RotateTransform(); }
public DigitalClock(FastClock.FastClock fastClock) { InitializeComponent(); _fastClock = fastClock; _fastClock.OnMinuteIsOver += FastClockOneMinuteIsOver; }