Esempio n. 1
0
 public MainPage()
 {
     this.InitializeComponent();
     this.dt = new DispatcherTimer();
     this.dt.set_Interval(TimeSpan.FromMilliseconds(100.0));
     this.dt.add_Tick(new EventHandler(this, this.dt_Tick));
     this.microphone.add_BufferReady(new EventHandler<EventArgs>(this, this.microphone_BufferReady));
     this.startMeasure();
     this.marks = App.marks;
 }
Esempio n. 2
0
 public App()
 {
     base.add_UnhandledException(new EventHandler<ApplicationUnhandledExceptionEventArgs>(this, this.Application_UnhandledException));
     this.InitializeComponent();
     this.InitializePhoneApplication();
     if (Debugger.get_IsAttached())
     {
         Application.get_Current().get_Host().get_Settings().set_EnableFrameRateCounter(true);
         PhoneApplicationService.get_Current().set_UserIdleDetectionMode(1);
     }
     skin = new SettRule();
     marks = MarkList.Load();
 }