internal void RemoveNotInstalledCheckedInstallations() { foreach (var i in Installations.ToList()) { if (i.NotInstalled && i.CheckForUpdatesFlag) { Installations.Remove(i); } } OnPropertyChanged("Installations"); }
private void OnRemoveInstallation() { try { var installation = SelectedInstall.Value; if (installation == null) { return; } Installations.Remove(installation); _settingsService.RemoveInstalls(installation.ConcreteInstall.Directory); } catch (Exception e) { GeneralExceptionHandler.Instance.OnError(e); } }
private void OnRemoveInstallation() { try { var installation = SelectedInstall.Value; if (installation == null) { return; } if (MessageBoxEx.Show($"Are you sure you want to remove the {installation.ConcreteInstall.Name} install", "Remove Install", System.Windows.MessageBoxButton.YesNo) == System.Windows.MessageBoxResult.Yes) { Installations.Remove(installation); SettingsController.RemoveInstalls(installation.ConcreteInstall.Directory); } } catch (Exception e) { GeneralExceptionHandler.Instance.OnError(e); } }
private void RemoveRegistryAutoDiscoveredInstallations(bool user_scope) { Installations.Remove(x => (x.IsRegistryAutodiscoveredInstance && x.RegistryUserScope == user_scope)); }