예제 #1
0
        public static int Run(Arguments args)
        {
            Log.InfoFormat("Starting update of v{0} to {1}",
                           Constants.ApplicationVersion,
                           args.InstallationPath);

            var app = new UpdateApplication();
            var dispatcher = new UiDispatcher(System.Windows.Threading.Dispatcher.CurrentDispatcher);
            var window = new UpdaterWindow(new UpdateWindowViewModel(dispatcher, args.InstallationPath));
            window.Show();
            return app.Run();
        }
예제 #2
0
        public static int Run(Arguments args)
        {
            Log.InfoFormat("Starting update of v{0} to {1}",
                           Constants.ApplicationVersion,
                           args.InstallationPath);

            var app        = new UpdateApplication();
            var dispatcher = new UiDispatcher(System.Windows.Threading.Dispatcher.CurrentDispatcher);
            var window     = new UpdaterWindow(new UpdateWindowViewModel(dispatcher, args.InstallationPath));

            window.Show();
            return(app.Run());
        }