public MainWindow() { // Uncomment to test localization // System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("de-DE"); Title = Strings.AboutSubtitle; InitializeComponent(); _pageFlow = new PageFlow(_NavigationFrame); _pageFlow.Navigate(typeof(PageProvisionDeviceWithAzure)); }
public PageProvisionDeviceWithAzure(PageFlow pageFlow) { _pageFlow = pageFlow; _viewModel = new PageProvisionDeviceWithAzureViewModel(this); DataContext = _viewModel; InitializeComponent(); CreateDescription.Text = Strings.Prerequisits; InstallButton.Content = Strings.CreateEdgeButton; IoTHubTitle.Text = Strings.IoTHubs; IoTEdgeTitle.Text = Strings.IoTEdgeModules; CreateOptionsTitle.Text = Strings.AzureCreateDeviceIdDesc; NicsTitle.Text = Strings.Nic; CheckBox.Content = Strings.InstallIIoT; }
public PageProvisionDeviceWithAzure(PageFlow pageFlow) { _pageFlow = pageFlow; _viewModel = new PageProvisionDeviceWithAzureViewModel(this); DataContext = _viewModel; InitializeComponent(); CreateDescription.Text = Strings.NewAzureDevice; InstallButton.Content = Strings.CreateEdgeButton; IoTHubTitle.Text = Strings.IoTHubs; IoTHubHint.Text = Strings.IoTHubsHint; CreateOptionsTitle.Text = Strings.AzureCreateDeviceIdDesc; // periodically update the module status (every 3 seconds) Timer timer = new Timer(3000); timer.Elapsed += Timer_Elapsed; timer.AutoReset = true; timer.Start(); }