public AttachToWacProcessDialogModel(IMenuCommands menuCommands, IEnumerable <string> connectionTypes) { MenuCommands = menuCommands ?? throw new ArgumentNullException(nameof(menuCommands)); ConnectionTypes = connectionTypes != null ? new ObservableCollection <string>(connectionTypes) : throw new ArgumentNullException(nameof(connectionTypes)); Processes = new ObservableCollection <WacProcessInfo>(); DebuggerEngines = DebuggerEngines.DefaultLazy; }
public MenuNavigation(IInputValidation inputValidation, IMenuFormatting menuFormatting, IList <IMovie> movies, IRelevantMenus relevantMenus) { _inputValidation = inputValidation; _menuFormatting = menuFormatting; _movies = movies; _relevantMenus = relevantMenus; _relevantMenus.CurrentMenu = MenuTypeCodes.MAIN_MENU; _menuCommands = new MenuCommands(_menuFormatting, new AddNewMovie(), new DeleteMovie(), new SearchForMovies(), _inputValidation, _movies, _relevantMenus); _menuCommands.PrintCurrentMenu(); HandleMenuSelection(); }
public AttachToWacProcessDialogModel(IMenuCommands menuCommands, IEnumerable <string> connectionTypes) { MenuCommands = menuCommands ?? throw new ArgumentNullException(nameof(menuCommands)); ConnectionTypes = connectionTypes != null ? new ObservableCollection <string>(connectionTypes) : throw new ArgumentNullException(nameof(connectionTypes)); Processes = new ObservableCollection <WacProcessInfo>(); DebuggerEngines = DebuggerEngines.DefaultLazy; var settingsManager = new ShellSettingsManager(ServiceProvider.GlobalProvider); settingsStore = settingsManager.GetWritableSettingsStore(SettingsScope.UserSettings); // CreateCollection method skips over any existing collections, so it's safe to call without checking here. settingsStore.CreateCollection(CollectionPath); }
public AttachToWacProcessDialogModel(IMenuCommands menuCommands) { MenuCommands = menuCommands ?? throw new ArgumentNullException(nameof(menuCommands)); Processes = new ObservableCollection <WacProcessInfo>(); DebuggerEngines = DebuggerEngines.DefaultLazy; }