コード例 #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;
 }
コード例 #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();
 }
コード例 #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);
        }
コード例 #4
0
 public AttachToWacProcessDialogModel(IMenuCommands menuCommands)
 {
     MenuCommands    = menuCommands ?? throw new ArgumentNullException(nameof(menuCommands));
     Processes       = new ObservableCollection <WacProcessInfo>();
     DebuggerEngines = DebuggerEngines.DefaultLazy;
 }