Ejemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();
            RobotServiceConnection.OnPong += OnPong;
            RobotServiceConnection.OnLog  += OnLog;
            var connTask = RobotServiceConnection.Run(_cts.Token);

            DataContext = _viewModel;
            _viewModel.InitializeLayoutImage(this);
        }
Ejemplo n.º 2
0
 private async void Button_Click(object sender, RoutedEventArgs e)
 {
     await RobotServiceConnection.Ping(_cts.Token);
 }