Exemplo n.º 1
0
        public SearchResultProcessingContainerViewModel(SearchResultProcessingViewModel parent)
        {
            this.parent = parent;

            SortItems = new ReadOnlyObservableCollection <SearchResultSortItemViewModel>(sortItems);

            IsEditMode = parent.IsEditMode;

            ApplyCommand       = new AnonymousCommand(OnApply);
            MakeActiveCommand  = new AnonymousCommand(OnMakeActive);
            DeactivateCommand  = new AnonymousCommand(() => IsActive = false);
            AddSortItemCommand = new AnonymousCommand(OnAddSortItem);

            MoveSelfUpCommand   = new AnonymousCommand(OnMoveSelfUp);
            MoveSelfDownCommand = new AnonymousCommand(OnMoveSelfDown);
            RemoveSelfCommand   = new AnonymousCommand(OnRemoveSelf);

            parent.EditModeChanged += Parent_EditModeChanged;
        }
Exemplo n.º 2
0
        public RootViewModel()
        {
            CloseApplicationCommand = new AnonymousCommand(OnCloseApplication);

            OpenSkillSelectorCommand          = new AnonymousCommand(OpenSkillSelector);
            SearchArmorSetsCommand            = new AnonymousCommand(SearchArmorSets);
            CancelArmorSetsSearchCommand      = new AnonymousCommand(CancelArmorSetsSearchForCommand);
            AdvancedSearchCommand             = new AnonymousCommand(AdvancedSearch);
            OpenDecorationsOverrideCommand    = new AnonymousCommand(OpenDecorationsOverride);
            OpenEquipmentOverrideCommand      = new AnonymousCommand(OpenEquipmentOverride);
            OpenSearchResultProcessingCommand = new AnonymousCommand(OpenSearchResultProcessing);

            AboutCommand = new AnonymousCommand(OnAbout);

            SearchResultProcessing = new SearchResultProcessingViewModel(this);
            InParameters           = new InParametersViewModel(this);
            WeaponsContainer       = new WeaponsContainerViewModel(this);
            EquipmentOverride      = new EquipmentOverrideViewModel(this);

            SetupLocalization();

            Extensions = new ExtensionSelectorViewModel(this);
        }