private void btnTestColumns_Click(object sender, RoutedEventArgs e) { Screen screen = (Screen)cmbxScreenList.SelectedItem; byte count = byte.Parse(inpTestColumns.Text); Connector.Action105TestColumns(screen, count); }