public DeviceConfigurationManager(IDeviceConfigurationRepo deviceConfigRepo, IDataStreamManager dataStreamManager, IDeviceMessageDefinitionManager deviceMessageDefinitionManager, IPipelineModuleManager pipelineModuleManager, IDeviceAdminManager deviceAdminManager, IAdminLogger logger, IDeploymentInstanceManagerCore deploymentInstnaceManager, IAppConfig appConfig, IDependencyManager depmanager, ISecurity security) : base(logger, appConfig, depmanager, security) { _pipelineModuleManager = pipelineModuleManager; _deviceConfigRepo = deviceConfigRepo; _deviceAdminManager = deviceAdminManager; _deviceMessageDefinitionManager = deviceMessageDefinitionManager; _deploymentInstanceManager = deploymentInstnaceManager; _dataStreamManager = dataStreamManager; }
private async void Page_Loaded(object sender, RoutedEventArgs e) { deviceConfigurationRepo = new LocalDeviceConfigurationRepo(); deviceConfiguration = await deviceConfigurationRepo.Get(); if (deviceConfiguration == null) { deviceConfiguration = new DeviceConfiguration(); } else { ToggleMenu(); Address.Text = deviceConfiguration.DefaulUrl; MyWebView.Navigate(new Uri(deviceConfiguration.DefaulUrl)); } }
private async void Page_Loaded(object sender, RoutedEventArgs e) { deviceConfigurationRepo = new LocalDeviceConfigurationRepo(); deviceConfiguration = await deviceConfigurationRepo.Get(); if (deviceConfiguration == null) { deviceConfiguration = new DeviceConfiguration(); } else { ToggleMenu(); Address.Text = deviceConfiguration.DefaulUrl; MyWebView.Navigate(new Uri(deviceConfiguration.DefaulUrl)); } }