/// <summary>Creates a new preset view model.</summary>
        public PresetViewModel(Preset preset, ModManager modManager, PresetManager presetManager)
        {
            this.modManager = modManager;
            this.presetManager = presetManager;

            Preset = preset;

            RenameCommand = new Command(Rename);
            DisbandCommand = new Command(Disband);
        }
        public ActivitiesTabViewModel()
        {
            activities = new ObservableCollection<ActivityViewModel>();
            activityTypes = new ObservableCollection<ActivityTypeViewModel>();

            savedActivities = new SavedActivitiesManager(Grabber.ModManagerDirectory);
            activityLoader = new ActivityLoader(Grabber.ModManagerDirectory);

            AddActivityCommand = new Command(x => { IsAddingActivity = true; });
            ConfirmNewActivityCommand = new Command(ConfirmNewActivity, CanConfirmNewActivity);
            CancelNewActivityCommand = new Command(CancelNewActivity);
        }
        /// <summary>Creates a new MainWindowViewModel, supply sub-view-models that are required.</summary>
        public NewMainWindowViewModel(CCMMInitialization initialization)
        {
            Cursor = Cursors.Arrow;
            RunCCCommand = new Command(RunCCAsync);
            WindowClosingCommand = new Command(WindowClosing);

            this.initialization = initialization;

            windowWidth = DefaultWindowWidth;
            windowHeight = DefaultWindowHeight;

            SetDimensionsFromSettings(initialization.Settings.Get());
        }
        public ModsTabViewModel(CCMMInitialization initialization)
        {
            EnableAllModsCommand = new Command(EnableAllMods);
            DisableAllModsCommand = new Command(DisableAllMods);
            RefreshListCommand = new Command(LoadAllMods);
            InstallModCommand = new Command(InstallModsFromDialog);

            UpdateFiltersCommand = new Command(RefreshView);

            Icons = new ModsTabIcons();

            ShowEnabledMods = true;
            ShowDisabledMods = true;

            InitModsCollectionSource();

            this.initialization = initialization;
            this.modManager = initialization.ModManager;
            this.presetManager = initialization.PresetManager;
        }
 public ModListItemViewModel()
 {
     ToggleEnabledCommand = new Command(ToggleEnabled);
 }