src/TF2HUD.Editor/MainWindow.xaml.cs
/// <summary>
///     Updates the local schema files to the latest version.
/// </summary>
Updates the local schema files to the latest version.
Updates the local schema files to the latest version .
private void BtnRefresh_OnClick(object sender, RoutedEventArgs e)
        {
            Logger.Info("Checking for schema updates.");
            Json.UpdateAsync().ContinueWith(restartRequired =>
            {
                if (!restartRequired.Result)
                {
                    _notifier.ShowMessageBox(MessageBoxImage.Information, Properties.Resources.info_hud_update_none);
                    return;
                }
                if (_notifier.ShowMessageBox(MessageBoxImage.Information, Properties.Resources.info_hud_update, MessageBoxButton.YesNo) != MessageBoxResult.Yes) return;
                Json.Update(true);
                Debug.WriteLine(Assembly.GetExecutingAssembly().Location);
                Process.Start(Assembly.GetExecutingAssembly().Location.Replace(".dll", ".exe"));
                Environment.Exit(0);
            });
        }
private void BtnRefresh_OnClick ( object sender , RoutedEventArgs e ) { Logger . Info ( " " ) ; Json . UpdateAsync ( ) . ContinueWith ( restartRequired => { if ( ! restartRequired . Result ) { _notifier . ShowMessageBox ( MessageBoxImage . Information , Properties . Resources . info_hud_update_none ) ; return ; } if ( _notifier . ShowMessageBox ( MessageBoxImage . Information , Properties . Resources . info_hud_update , MessageBoxButton . YesNo ) != MessageBoxResult . Yes ) return ; Json . Update ( true ) ; Debug . WriteLine ( Assembly . GetExecutingAssembly ( ) . Location ) ; Process . Start ( Assembly . GetExecutingAssembly ( ) . Location . Replace ( " " , " " ) ) ; Environment . Exit ( 0 ) ; } ) ; }
Updates the local schema files to the latest version.
Updates the local schema files to the latest version .
// Check for HUD updates.
sender
object
e
RoutedEventArgs