Example #1
0
        internal void RemoveNotInstalledCheckedInstallations()
        {
            foreach (var i in Installations.ToList())
            {
                if (i.NotInstalled && i.CheckForUpdatesFlag)
                {
                    Installations.Remove(i);
                }
            }

            OnPropertyChanged("Installations");
        }
Example #2
0
        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);
            }
        }
Example #3
0
        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);
            }
        }
Example #4
0
 private void RemoveRegistryAutoDiscoveredInstallations(bool user_scope)
 {
     Installations.Remove(x => (x.IsRegistryAutodiscoveredInstance && x.RegistryUserScope == user_scope));
 }