private void Remove() { //Remove files that's was deleted or upgraded by stride versions <= 3.0 if (string.IsNullOrEmpty(this.StrideVersionName) || string.Compare(this.StrideVersionName, "3.0", StringComparison.Ordinal) <= 0) { //Get all installed versions var strideInstalledVersions = this.Launcher.StrideVersions.Where(x => x.CanDelete) .Select(x => $"{x.Major}.{x.Minor}").ToList(); //If original version of files is not in list get and to add it. if (!string.IsNullOrEmpty(this.StrideVersionName) && !strideInstalledVersions.Any(x => x.Equals(this.StrideVersionName))) { strideInstalledVersions.Add(this.StrideVersionName); } foreach (var item in strideInstalledVersions) { GameStudioSettings.RemoveMostRecentlyUsed(this.fullPath, item); } } else { GameStudioSettings.RemoveMostRecentlyUsed(this.fullPath, this.StrideVersionName); } }
internal void LoadRecentProjects() { lock (RecentProjects) { RecentProjects.Clear(); foreach (var mruFile in GameStudioSettings.GetMostRecentlyUsed()) { RecentProjects.Add(new RecentProjectViewModel(this, mruFile)); } } }