public MainWindow()
        {
            InitializeComponent();
            Selector = new SelectorViewModel();
            this.DataContext = this;

            Selector.OnBoardConnected += Selector_OnBoardConnected;
            Selector.OnBoardDisconnected += Selector_OnBoardDisconnected;

        }
        public DeviceManagerViewModel()
        {
            if (DesignerProperties.GetIsInDesignMode(new DependencyObject()))
                Selector = new SelectorDesignTimeViewModel(true);
            else
                Selector = new SelectorViewModel();

            Messenger.Default.Register<BoardConnectedMessage>(this, (msg) => { SelectedBoard = msg.Board; });
        }