public bool InstallHardRockWebService(bool showMessage = true) { if (showMessage) { if (AppHost.MessageBox(Resources.OldWebService_InstallHardRockWebService_, Resources.Information, MessageBoxButton.YesNo, MessageBoxImage.Question) != MessageBoxResult.Yes) { return(false); } } UpdateServerComponentsDialog.Execute(this, Connection.HostName, Connection.WebRootPath, null); return(true); }
protected override bool CheckVersion() { if (dataService == null || string.IsNullOrEmpty(WebServiceVersion)) { InitializeDataService(); if (dataService == null) { return(false); } } var webServiceVersion = WebServiceVersion ?? string.Empty; var assemblyVersion = Assembly.GetExecutingAssembly().GetFileVersion().ToString(); if (webServiceVersion == assemblyVersion) { return(true); } if (DisableLoginErrorMessage) { return(false); } var text = string.Format(Resources.HardRockWebService_CheckVersion_, webServiceVersion, assemblyVersion); var dialogResult = AppHost.MessageBox(text, Resources.Warning, MessageBoxButton.OKCancel, MessageBoxImage.Warning); if (dialogResult != MessageBoxResult.OK) { return(false); } UpdateServerComponentsDialog.Execute(this, Connection.HostName, Connection.WebRootPath, null); return(false); }