private void ButtonCreateView_Click(object sender, RoutedEventArgs e)
        {
            DigitalClock digitalClock = new DigitalClock();

            digitalClock.Owner = this;
            digitalClock.Show();
        }
Esempio n. 2
0
        private void ButtonCreateView_Click(object sender, RoutedEventArgs e)
        {
            DigitalClock digitalClock = new DigitalClock();

            digitalClock.Owner = this;
            digitalClock.Show();

            fastClock.OneMinuteIsOver += digitalClock.DigitalClockOneMinuteIsOver;
        }
Esempio n. 3
0
 public void FastClockOneMinuteIsOver(object sender, DateTime fastClockTime)
 {
     textBlockDate.Text = fastClockTime.Date.ToShortDateString();
     textBlockTime.Text = fastClockTime.ToShortTimeString();
     if (IsButtonClicked)
     {
         _digitalClock   = new DigitalClock();
         IsButtonClicked = false;
     }
     if (_digitalClock != null)
     {
         _digitalClock.Owner = this;
         _digitalClock.Show();
         _digitalClock.TextBlockClock.Text = fastClockTime.ToShortTimeString();
     }
 }