Exemple #1
0
 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;
     }
 }
 void OnLevelWasLoaded(int level)
 {
     Singleton = null;
 }
Exemple #3
0
 void OnLevelWasLoaded(int level)
 {
     Singleton = null;
 }