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; }
protected void CreateNewObject(string schemaType) { if (this.sceneAdapter == null) { this.sceneAdapter = PropertyEditorSceneAdapter.Create(schemaType); this.sceneAdapter.Mode = SCObjectOperationMode.Add; } this.CreateNewObjectBySchemaType(schemaType); }
public static PropertyEditorSceneAdapter Create(string schemaType) { var category = ObjectSchemaSettings.GetConfig().Schemas[schemaType].Category; return(PropertyEditorSceneAdapter.CreateByCategory(category)); }