public MainWindow()
        {
            InitializeComponent();
            RobotServiceConnection.OnPong += OnPong;
            RobotServiceConnection.OnLog  += OnLog;
            var connTask = RobotServiceConnection.Run(_cts.Token);

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