diff --git a/installer/Installer/Model.cs b/installer/Installer/Model.cs index ff08b7f..3f9646c 100644 --- a/installer/Installer/Model.cs +++ b/installer/Installer/Model.cs @@ -170,7 +170,7 @@ namespace starter.viewmodel.settings } public int Uninst() { - return Tencent_cos_download.DeleteAll(); + return Tencent_cos_download.DeleteAll(); } public bool Launch() @@ -292,12 +292,12 @@ namespace starter.viewmodel.settings } public bool RememberMe { - get;set; + get; set; } - public enum LaunchLanguage { cpp,python }; + public enum LaunchLanguage { cpp, python }; public LaunchLanguage launchLanguage { - get;set; + get; set; } } } @@ -633,7 +633,7 @@ namespace Downloader int newFile = 0, updateFile = 0; int totalnew = newFileName.Count, totalupdate = updateFileName.Count; filenum = totalnew + totalupdate; - + if (newFileName.Count > 0 || updateFileName.Count > 0) { try diff --git a/installer/Installer/ViewModel.cs b/installer/Installer/ViewModel.cs index 0757a13..115286c 100644 --- a/installer/Installer/ViewModel.cs +++ b/installer/Installer/ViewModel.cs @@ -35,7 +35,7 @@ namespace starter.viewmodel.settings //实例化BackgroundWorker asyncDownloader = new BackgroundWorker(); - asyncUpdater= new BackgroundWorker(); + asyncUpdater = new BackgroundWorker(); //指示BackgroundWorker是否可以报告进度更新 //当该属性值为True是,将可以成功调用ReportProgress方法,否则将引发InvalidOperationException异常。 asyncDownloader.WorkerReportsProgress = true; @@ -419,7 +419,7 @@ namespace starter.viewmodel.settings public Visibility UpdateInfoVis { - get;set; + get; set; } public Visibility LaunchVis @@ -665,7 +665,7 @@ namespace starter.viewmodel.settings break; } - + })); } return clickUninstCommand;