private TC(string port) { device = new CPARDevice() { Location = Location.Parse(port) }; device.Open(); watch = new Stopwatch(); }
// ExecutedRoutedEventHandler for the custom color command. private void OpenDeviceCmdExecuted(object sender, ExecutedRoutedEventArgs e) { device.Open(); }