Esempio n. 1
0
 public MainWindowViewModel()
 {
     ConnectCommand = new DelegateCommand(conn);
     RCommand       = new DelegateCommand(() => SelectedDevice.TxUsb(Encoding.ASCII.GetBytes("r")));
     GCommand       = new DelegateCommand(() => SelectedDevice.TxQueue.Enqueue(Encoding.ASCII.GetBytes("g")));
     YCommand       = new DelegateCommand(() => SelectedDevice.TxQueue.Enqueue(Encoding.ASCII.GetBytes("y")));
 }