private void Tutorial_Click(object sender, System.Windows.RoutedEventArgs e) { var firstLaunchWindow = new FirstLaunch(); firstLaunchWindow.Owner = Window.GetWindow(this); firstLaunchWindow.ShowDialog(); }
private void DisplayFirstLaunchWarningIfNeeded() { var loaderConfig = IoC.Get <LoaderConfig>(); if (loaderConfig.FirstLaunch) { IConfig <LoaderConfig> .ToPath(loaderConfig, Paths.LoaderConfigPath); var firstLaunchWindow = new FirstLaunch(); firstLaunchWindow.Owner = Window.GetWindow(this); firstLaunchWindow.ShowDialog(); loaderConfig.FirstLaunch = false; } }
private void DisplayFirstLaunchWarningIfNeeded() { ActionWrappers.ExecuteWithApplicationDispatcher(() => { var loaderConfig = IoC.Get <LoaderConfig>(); if (loaderConfig.FirstLaunch) { var firstLaunchWindow = new FirstLaunch(); firstLaunchWindow.Owner = Window.GetWindow(this); firstLaunchWindow.ShowDialog(); loaderConfig.FirstLaunch = false; LoaderConfigReader.WriteConfiguration(loaderConfig); } }); }
private void InstallerProgressBar_Shown(object sender, EventArgs e) { //Force window to render components Application.DoEvents(); bool success = FirstLaunch.Initiate(progressBar, lblProgressText, installer); if (success) { btnDone.Enabled = true; label1.Text = "Installation terminée"; } else { label1.Text = "Une erreur est survenue, veuillez réessayer"; label1.ForeColor = Color.Red; } }