Пример #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);
        }