protected PropertyGroupViewModel CreateRoleTab(PartyRole role) { var vMdl = DataObjectViewModel.Fetch(ViewModelFactory, DataContext, this, role); var roleCls = role.GetObjectClass(FrozenContext); var propGrpMdl = ViewModelFactory.CreateViewModel <CustomPropertyGroupViewModel.Factory>().Invoke( DataContext, this, "Role_" + role.GetObjectClass(FrozenContext).Name, Assets.GetString(roleCls.Module, ZetboxAssetKeys.DataTypes, ZetboxAssetKeys.ConstructNameKey(roleCls), roleCls.Name), new ViewModel[] { vMdl }); return(propGrpMdl); }
public RoleSelectionViewModel(IViewModelDependencies dependencies, IZetboxContext dataCtx, ViewModel parent, ObjectClass targetPropClass) : base(dependencies, dataCtx, parent) { TargetPropClass = targetPropClass; _name = _assets.GetString(targetPropClass.Module, ZetboxAssetKeys.DataTypes, ZetboxAssetKeys.ConstructNameKey(targetPropClass), targetPropClass.Name); }