protected EquipmentGroupViewModel(EquipmentOverrideViewModel parent, IEnumerable <EquipmentViewModel> equipments) { this.parent = parent; Equipments = equipments.Where(x => x != null).ToList(); ToggleAllCommand = new AnonymousCommand(OnToggleAll); }
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) ); }
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); }
public CharmGroupViewModel(EquipmentOverrideViewModel parent, IEnumerable <EquipmentViewModel> equipments) : base(parent, equipments) { OrderedEquipments = MakeCharms(Equipments).ToList(); Name = ((ICharmLevel)Equipments[0].Equipment).Charm.Name; }