예제 #1
0
 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;
     }
 }
예제 #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;
     }
 }