protected void CreateNewObject(string schemaType)
 {
     if (this.sceneAdapter == null)
     {
         this.sceneAdapter      = PropertyEditorSceneAdapter.Create(schemaType);
         this.sceneAdapter.Mode = SCObjectOperationMode.Add;
     }
 }
        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;
        }
Example #3
0
        protected void CreateNewObject(string schemaType, string parentID)
        {
            this.sceneAdapter          = PropertyEditorSceneAdapter.Create(schemaType);
            this.sceneAdapter.ParentID = parentID;
            this.sceneAdapter.Mode     = SCObjectOperationMode.Add;

            this.CreateNewObject(schemaType);

            this.currentParentID.Value = parentID;
        }
Example #4
0
        protected void CreateAUSchema(string category)
        {
            category.CheckStringIsNullOrEmpty("category");

            this.sceneAdapter      = PropertyEditorSceneAdapter.Create(AUCommon.SchemaAUSchema);
            this.sceneAdapter.Mode = SCObjectOperationMode.Add;

            this.CreateNewObject(AUCommon.SchemaAUSchema);

            ((AUSchema)this.Data).CategoryID = category;

            this.currentParentID.Value = null;
        }
Example #5
0
        protected void LoadObject(string id)
        {
            AUCommon.DoDbAction(() =>
            {
                this.Data = SchemaObjectAdapter.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;

            // this.CurrentSchemaType = this.Data.SchemaType;
            this.OperationMode = SCObjectOperationMode.Update;
        }