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;
        }
        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);
        }
Esempio n. 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;
        }