private void Clear_Serial1_Click(object sender, RoutedEventArgs e) { MenuItem menu = (MenuItem)sender; if (menu.Header.ToString() == "Clear Left") { SP1.ClearDisplay(); } else { SP2.ClearDisplay(); } }
private void Clear_All_Click(object sender, RoutedEventArgs e) { SP1.ClearDisplay(); SP2.ClearDisplay(); }