예제 #1
0
        protected EquipmentGroupViewModel(EquipmentOverrideViewModel parent, IEnumerable <EquipmentViewModel> equipments)
        {
            this.parent = parent;

            Equipments = equipments.Where(x => x != null).ToList();

            ToggleAllCommand = new AnonymousCommand(OnToggleAll);
        }
예제 #2
0
 public ArmorGroupViewModel(EquipmentOverrideViewModel parent, IEnumerable <ArmorPieceViewModel> equipments)
     : base(parent, equipments)
 {
     OrderedEquipments = MakeArmorPieces(Equipments).ToList();
     Name = Localization.AvailableLanguageCodes.ToDictionary(
         kv1 => kv1.Key,
         kv2 => FindGroupName(Equipments, kv2.Key)
         );
 }
예제 #3
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);
        }
예제 #4
0
 public CharmGroupViewModel(EquipmentOverrideViewModel parent, IEnumerable <EquipmentViewModel> equipments)
     : base(parent, equipments)
 {
     OrderedEquipments = MakeCharms(Equipments).ToList();
     Name = ((ICharmLevel)Equipments[0].Equipment).Charm.Name;
 }