public WeaponTypeViewModel(MHWMasterDataUtils.Core.WeaponType type, IList <WeaponViewModel> rootWeapons, WeaponsContainerViewModel parent) { Parent = parent; Type = type; awaitingRootWeapons = rootWeapons; SetIsSharpness(); ActivateCommand = new AnonymousCommand(OnActivate); foreach (WeaponViewModel weapon in rootWeapons) { weapon.SetParentType(this); } }
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); }