コード例 #1
0
        protected void LoadObject(string id)
        {
            this.Data = DESchemaObjectAdapter.Instance.Load(id);

            this.sceneAdapter            = PropertyEditorSceneAdapter.Create(this.Data.SchemaType);
            this.sceneAdapter.ObjectID   = this.Data.ID;
            this.sceneAdapter.Mode       = SCObjectOperationMode.Update;
            this.currentSchemaType.Value = this.Data.SchemaType;
        }
コード例 #2
0
        protected void CreateNewObject(string schemaType)
        {
            if (this.sceneAdapter == null)
            {
                this.sceneAdapter      = PropertyEditorSceneAdapter.Create(schemaType);
                this.sceneAdapter.Mode = SCObjectOperationMode.Add;
            }

            this.CreateNewObjectBySchemaType(schemaType);
        }
コード例 #3
0
        public static PropertyEditorSceneAdapter Create(string schemaType)
        {
            var category = ObjectSchemaSettings.GetConfig().Schemas[schemaType].Category;

            return(PropertyEditorSceneAdapter.CreateByCategory(category));
        }