// Constructor
        public MainPage()
        {
            InitializeComponent();

            // Set the data context of the listbox control to the sample data
            MyBT = new BT_In();

            Discovered_BT_List.ItemsSource = MyBT.pairedDevicesList;

            myGPS.MovementThreshold = 0.1;
            myGPS.PositionChanged  += myGPS_PositionChanged;
            myGPS.Start();

            latitude = longitude = -999;

            delta       = new long[data_max];
            theta       = new long[data_max];
            gamma       = new long[data_max];
            sleep       = new double[count_max];
            epilepsy    = new double[count_max];
            stdev_delta = new double[count_max];

            PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled;

            // Sample code to localize the ApplicationBar
            //BuildLocalizedApplicationBar();
        }
Exemplo n.º 2
0
        public MainPage()
        {
            InitializeComponent();

            // Sample code to localize the ApplicationBar
            //BuildLocalizedApplicationBar();

            MyBT = new BT_In();

            Discovered_BT_List.ItemsSource = MyBT.pairedDevicesList;
        }
Exemplo n.º 3
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            // Set the data context of the listbox control to the sample data
            MyBT = new BT_In();

            Discovered_BT_List.ItemsSource = MyBT.pairedDevicesList;

            myGPS.MovementThreshold = 0.1;
            myGPS.PositionChanged  += myGPS_PositionChanged;
            myGPS.Start();

            latitude = longitude = -999;

            delta = new long[data_max];
            theta = new long[data_max];
            gamma = new long[data_max];
            d_amp = new double[data_max];
            // Sample code to localize the ApplicationBar
            //BuildLocalizedApplicationBar();
        }