/// <summary> /// Method invoked the window is laid out, rendered, and ready for interaction. /// Verify if there are new updates available for Project Kittan on GitHub. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private async void Window_Loaded(object sender, RoutedEventArgs e) { #if !APPX if (await UpdateExtensions.Check()) { if (MessageBox.Show("There's a new version of Project Kittan available on GitHub. Do you want to download it?", Properties.Resources.AppName, MessageBoxButton.YesNo, MessageBoxImage.Information) == MessageBoxResult.Yes) { Process.Start("https://github.com/matteoparlato/Project-Kittan/releases"); } } #endif }
private void MainWindow_Load(object sender, EventArgs e) { Text = $"AtomicX - {UpdateExtensions.CurrentVersionName}"; if (HttpExtensions.IsConnectedToInternet()) { LoadSettingsData(); UpdateExtensions.CheckApplicationVersion(); WorkerExtensions.RunWorkAsync(LoadData, InitializeFinished); EnableConsoleActions(); } else { SetStatus("Not connected to the interet. Enable this in your computer settings."); XtraMessageBox.Show(this, "You must be connected to the Internet to use this application.", "No Internet", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void MenuItemCheckForUpdate_Click(object sender, EventArgs e) { UpdateExtensions.CheckApplicationVersion(); }