protected override void OnNavigatedTo(Windows.UI.Xaml.Navigation.NavigationEventArgs e)
        {
            if (e.Parameter is FingerSensorsApp.App)
            {
                FingerSensorsApp.App AppEnvironment = e.Parameter as FingerSensorsApp.App;


                if (AppEnvironment != null)
                {
                    m_Environment               = AppEnvironment.Environment;
                    m_Connector_SEN0188         = m_Environment.SensorConnector;
                    m_Sensoroutputconfigoptions = m_Environment.SensorOutPutServiceConnectorConfig;
                    m_Sensorinputconfigoptions  = m_Environment.SensorInputServiceConnectorConfig;
                    m_SettingsToStorage         = AppEnvironment.SettingsToStorage;

                    m_FingertEventDatabase      = m_Environment.FingertEventDatabase;
                    m_SEN0188SQLite             = m_Environment.SEN0188SQLite;
                    m_GPIOEnvironmentConnectors = m_Environment.GPIOEnvironmentConnectors;



                    m_Environment.StopConnectors();
                }
            }
            base.OnNavigatedTo(e);
        }
示例#2
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            if (e.Parameter is FingerSensorsApp.App)
            {
                FingerSensorsApp.App AppEnvironment = e.Parameter as FingerSensorsApp.App;


                if (AppEnvironment != null)
                {
                    m_Environment = AppEnvironment.Environment;

                    m_FingertEventDatabase = m_Environment.FingertEventDatabase;

                    // m_DataSets = m_FingertEventDatabase.DataSets;

                    _DisplayallEvents.IsChecked        = true;
                    _DisplayallOKEvents.IsChecked      = false;
                    _DisplayallMissingEvents.IsChecked = false;
                    GetEventData();                             // Get Event Data
                    TimeSpan period = TimeSpan.FromSeconds(10); // alle 10 sec neue Daten anzeigen
                    startFingerEventsTimer(period);
                }
            }
            base.OnNavigatedTo(e);
        }
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            if (e.Parameter is FingerSensorsApp.App)
            {
                FingerSensorsApp.App AppEnvironment = e.Parameter as FingerSensorsApp.App;


                if (AppEnvironment != null)
                {
                    m_Environment = AppEnvironment.Environment;

                    m_GPIOEnvironmentConnectors = m_Environment.GPIOEnvironmentConnectors;

                    m_SEN0188SQLite        = m_Environment.SEN0188SQLite;
                    m_FingertEventDatabase = m_Environment.FingertEventDatabase;

                    m_Connector_SEN0188         = m_Environment.SensorConnector;
                    m_Sensoroutputconfigoptions = m_Environment.SensorOutPutServiceConnectorConfig;
                    m_Sensorinputconfigoptions  = m_Environment.SensorInputServiceConnectorConfig;

                    m_ProcessorGPIOEvents = m_Environment.ProcessorGPIOEvents;

                    m_ProcessorGPIOEvents.NotifyEvent += ProcessorGPIOEvents_NotifyEvent;
                }
            }
            base.OnNavigatedTo(e);
        }
        public SettingsToStorage(FingerSensorsApp.App app)
        {
            m_LocalStorageSettings = new LocalStorageSettings("FingerSensorsAppAppEnvironment");

            m_localStorage       = new LocalStorageItem("FingerSensorsAppStation");
            m_StationEnvironment = app.Environment;
        }
示例#5
0
 public ShellPage(FingerSensorsApp.App app = null)
 {
     m_app = app;
     InitializeComponent();
     DataContext = this;
     Initialize();
 }
        protected override void OnNavigatedTo(Windows.UI.Xaml.Navigation.NavigationEventArgs e)
        {
            if (e.Parameter is FingerSensorsApp.App)
            {
                FingerSensorsApp.App AppEnvironment = e.Parameter as FingerSensorsApp.App;


                if (AppEnvironment != null)
                {
                    m_Environment               = AppEnvironment.Environment;
                    m_DataSets                  = m_Environment.SEN0188SQLite.DataSets;
                    m_SEN0188SQLite             = m_Environment.SEN0188SQLite;
                    m_Connector_SEN0188         = m_Environment.SensorConnector;
                    m_Sensoroutputconfigoptions = m_Environment.SensorOutPutServiceConnectorConfig;
                    m_Sensorinputconfigoptions  = m_Environment.SensorInputServiceConnectorConfig;
                    m_SEN0188SQLite.GetDataSets();

                    m_serDev           = m_Environment.SerDev;
                    SensorIDValue.Text = "not set";
                    m_Connector_SEN0188.NotifyChangeState += Connector_SEN0188_NotifyChangeState;
                }
            }
            base.OnNavigatedTo(e);
        }