public void Load() { GetServerVersionCommand.Execute(null); var version = Assembly.GetExecutingAssembly().GetName().Version; if (GetServerVersionCommand.Version > version) { DownloadCommand.Completed += DownloadCommand_Completed; DownloadCommand.Execute(null); } else { RequestClose?.Invoke(this, EventArgs.Empty); } }
public MainWindowViewModel() { GetServerVersionCommand = new GetServerVersionCommand(); DownloadCommand = new DownloadCommand(); }