private void Timer_Tick(object sender, EventArgs e)
 {
     if (BtnStartBlink.Background == Brushes.Red)
     {
         BtnStartBlink.ClearValue(Button.BackgroundProperty);
         BtnStopBlink.Background = Brushes.Green;
     }
     else
     {
         BtnStopBlink.ClearValue(Button.BackgroundProperty);
         BtnStartBlink.Background = Brushes.Red;
     }
 }
Esempio n. 2
0
 private void Timer_Tick(object sender, EventArgs e)
 {
     // throw new NotImplementedException();
     if (BtnStartBlink.Background == Brushes.Red)
     {
         BtnStartBlink.ClearValue(Button.BackgroundProperty);
         BtnStopBlink.Background = Brushes.Green;
     }
     else
     {
         BtnStopBlink.ClearValue(Button.BackgroundProperty);
         BtnStartBlink.Background = Brushes.Red;
     }
 }