This commit is contained in:
shinichi
2020-10-07 17:56:21 +02:00
parent 187beaf6c1
commit 46083b3912
7 changed files with 884 additions and 1 deletions

View File

@@ -13,6 +13,9 @@ using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using ClientApp.Utils;
using Hardware.Simulators;
using Client;
namespace ClientApp
{
@@ -25,6 +28,24 @@ namespace ClientApp
{
InitializeComponent();
DataContext = new MainWindowViewModel();
Client client = new Client();
while (!client.IsConnected())
{
}
//BLEHandler bLEHandler = new BLEHandler(client);
//bLEHandler.Connect();
//client.setHandler(bLEHandler);
BikeSimulator bikeSimulator = new BikeSimulator(client);
bikeSimulator.StartSimulation();
client.setHandler(bikeSimulator);
}
}
}