コード例 #1
0
        public static void RegisterTypes()
        {
            IResourceStore store = ICore.Instance.ResourceStore;

            store.ResourceTypes.Register("Flag", "Name", ResourceTypeFlags.Internal | ResourceTypeFlags.NoIndex);
            _propFlagId = store.PropTypes.Register("FlagId", PropDataType.String, PropTypeFlags.Internal);
            store.RegisterUniqueRestriction("Flag", _propFlagId);
            _propIconAssembly = store.PropTypes.Register("IconAssembly", PropDataType.String, PropTypeFlags.Internal);
            _propIconName     = store.PropTypes.Register("IconName", PropDataType.String, PropTypeFlags.Internal);
            PropFlag          = ResourceTypeHelper.UpdatePropTypeRegistration("Flag", PropDataType.Link,
                                                                              PropTypeFlags.DirectedLink);
            store.PropTypes.RegisterDisplayName(PropFlag, "Flag", "Flagged");
            PropNextStateFlag = store.PropTypes.Register("NextStateFlag", PropDataType.Link,
                                                         PropTypeFlags.Internal | PropTypeFlags.DirectedLink);
            _typesRegistered = true;
        }
コード例 #2
0
        internal WorkspaceManagerProps(IResourceStore store)
        {
            store.ResourceTypes.Register(WorkspaceResourceType, "Name", ResourceTypeFlags.Internal | ResourceTypeFlags.NoIndex);
            store.ResourceTypes.Register("WorkspaceOtherView", "Name", ResourceTypeFlags.Internal | ResourceTypeFlags.NoIndex);

            _propInWorkspace          = ResourceTypeHelper.UpdatePropTypeRegistration("InWorkspace", PropDataType.Link, PropTypeFlags.DirectedLink);
            _propInWorkspaceRecursive = store.PropTypes.Register("InWorkspaceRecursive", PropDataType.Link, PropTypeFlags.DirectedLink);
            _propExcludeFromWorkspace = store.PropTypes.Register("ExcludeFromWorkspace", PropDataType.Link, PropTypeFlags.DirectedLink);
            store.PropTypes.RegisterDisplayName(_propInWorkspace, "In Workspace", "Resources");
            _propVisibleOrder           = store.PropTypes.Register("VisibleOrder", PropDataType.Int, PropTypeFlags.Internal);
            _propWorkspaceHidden        = store.PropTypes.Register("WorkspaceHidden", PropDataType.Bool, PropTypeFlags.Internal);
            _propWorkspaceColor         = store.PropTypes.Register("WorkspaceColor", PropDataType.Int, PropTypeFlags.Internal);
            _propVisibleInAllWorkspaces = store.PropTypes.Register("VisibleInAllWorkspaces", PropDataType.Bool, PropTypeFlags.Internal);

            _propWorkspaceVisible = store.PropTypes.Register("WorkspaceVisible", PropDataType.Link, PropTypeFlags.Internal);
        }