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; } }
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; } }