public void InstallSelected() { var amount = FoundAssemblies.Count(a => a.InstallChecked); foreach (var assembly in FoundAssemblies) { if (assembly.InstallChecked) { if (assembly.Compile()) { if ( Config.Instance.SelectedProfile.InstalledAssemblies.All( a => a.Name != assembly.Name || a.SvnUrl != assembly.SvnUrl)) { Config.Instance.SelectedProfile.InstalledAssemblies.Add(assembly); } amount--; } } } if (amount == 0) { AfterInstallMessage(Utility.GetMultiLanguageText("SuccessfullyInstalled"), true); } else { AfterInstallMessage(Utility.GetMultiLanguageText("ErrorInstalling")); } }
public void InstallSelected() { var amount = FoundAssemblies.Count(a => a.InstallChecked); foreach (var assembly in FoundAssemblies.ToArray()) { if (assembly.InstallChecked) { if (assembly.Compile()) { if ( Config.Instance.SelectedProfile.InstalledAssemblies.All( a => a.Name != assembly.Name || a.SvnUrl != assembly.SvnUrl)) { Config.Instance.SelectedProfile.InstalledAssemblies.Add(assembly); FoundAssemblies.Remove(assembly); } amount--; } } } FoundAssemblies.Where(a => !string.IsNullOrEmpty(a.SvnUrl)).ToList().ForEach(x => GitUpdater.ClearUnusedRepoFolder(x.PathToProjectFile, Logs.MainLog)); if (amount == 0) { AfterInstallMessage(Utility.GetMultiLanguageText("SuccessfullyInstalled"), true); } else { AfterInstallMessage(Utility.GetMultiLanguageText("ErrorInstalling")); } }
public void InstallSelected() { var amount = FoundAssemblies.Count(a => a.InstallChecked); foreach (var assembly in FoundAssemblies) { if (assembly.InstallChecked) { if (assembly.Compile()) { if ( ((MainWindow)Owner).Config.SelectedProfile.InstalledAssemblies.All( a => a.Name != assembly.Name || a.SvnUrl != assembly.SvnUrl)) { ((MainWindow)Owner).Config.SelectedProfile.InstalledAssemblies.Add(assembly); } amount--; } } } if (amount == 0) { AfterInstallMessage("Selected assemblies succesfully installed.", true); } else { AfterInstallMessage( "There was an error while trying to install some of the assemblies, check the log for more details."); } }