Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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();
 }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 public AttachToWacProcessDialogModel(IMenuCommands menuCommands)
 {
     MenuCommands    = menuCommands ?? throw new ArgumentNullException(nameof(menuCommands));
     Processes       = new ObservableCollection <WacProcessInfo>();
     DebuggerEngines = DebuggerEngines.DefaultLazy;
 }