private Service(MainWindow observer) { this.observer = observer; microphones = new MicrophoneHandler(this); WMHandler = new WiimoteHandler(); stimuly_data_context = MovementWindowViewModel.GetInstance(); wm1_data_context = new WiimoteDataContext(); wm2_data_context = new WiimoteDataContext(); mic_data_context = new MicrophoneViewModel(); try { port = PortAccessHandler.GetIntance(); } catch (Exception ex) { Xceed.Wpf.Toolkit.MessageBox.Show( "A paralel port could not be detected on the given address. Please make sure you have a paralel port on the machine. \r\n"+ ex.Message); port = null; } }
private Service(MainWindow observer) { this.observer = observer; microphones = new MicrophoneHandler(this); WMHandler = new WiimoteHandler(); stimuly_data_context = MovementWindowViewModel.GetInstance(); wm1_data_context = new WiimoteDataContext(); wm2_data_context = new WiimoteDataContext(); mic_data_context = new MicrophoneViewModel(); try { port = PortAccessHandler.GetIntance(); } catch (Exception ex) { Xceed.Wpf.Toolkit.MessageBox.Show( "A paralel port could not be detected on the given address. Please make sure you have a paralel port on the machine. \r\n" + ex.Message); port = null; } }