private Popup settingsPopup; // This is the container that will hold our custom content

        public Scenario1View()
        {
            this.InitializeComponent();
            Scenario1 = this;

            SizeChanged += MainPageSizeChanged;

            EnumerateSensors();

            PeriodicTimer.SensorData    = sensorData;
            PeriodicTimer.SensorDisplay = sensorDisplay;

            Sensor.SensorData    = sensorData;
            Sensor.SensorDisplay = sensorDisplay;
        }
예제 #2
0
        public Scenario1View()
        {
            InitializeComponent();
            Scenario1 = this;

            SizeChanged += MainPageSizeChanged;

            Sensor.SensorDisplay = new List <SensorDisplay>();
            Sensor.SensorData    = new List <SensorData>();

            EnumerateSensors();

            saveFileButton.Click += SaveFileViewButtonClick;

            rootPage.NotifyUser("Enumerating sensors...", NotifyType.StatusMessage);
        }
예제 #3
0
        private Popup settingsPopup; // This is the container that will hold our custom content

        public Scenario1View()
        {
            this.InitializeComponent();
            Current = this;

            this.SizeChanged += MainPageSizeChanged;

            _sensorDisplay = new List <SensorDisplay>();
            _sensorData    = new List <SensorData>();

            EnumerateSensors();

            PeriodicTimer.sensorData    = _sensorData;
            PeriodicTimer.sensorDisplay = _sensorDisplay;

            Sensor.sensorData    = _sensorData;
            Sensor.sensorDisplay = _sensorDisplay;

            var resourceLoader = ResourceLoader.GetForCurrentView();

            saveFileButton.Click += SaveFileButtonClick;
        }