/// <summary>
 /// Initializes the singleton application object.  This is the first line of authored code
 /// executed, and as such is the logical equivalent of main() or WinMain().
 /// </summary>
 public App()
 {
     InitializeComponent();
     Suspending         += OnSuspending;
     UnhandledException += OnError;
     NavioHardwareProvider.Initialize();
 }
Beispiel #2
0
 public NavioUcenterDevice()
     : base(NavioHardwareProvider.ConnectSpi(SpiControllerIndex, ChipSelect, Frequency, DataLength, SpiMode.Mode0))
 {
     ActiveClients    = new Dictionary <Guid, StreamSocket>();
     MessageReceived += (sender, args) => OnMessageReceived(sender, args);
 }