/// <summary> /// 删除Cube操作 /// </summary> public void OnDelete() { if (IsClickedPart) { CommandDataEntity cmdEntity = (CommandDataEntity)FindObjectOfType <CommandDataModel>().DataEntity; DeleteCommandStr str = new DeleteCommandStr(); str.ObjectID = cubeDataEntity.objectID; cmdEntity.DeletePartMessage = str; IsClickedPart = false; } }
/// <summary> /// 业务逻辑处理函数 /// </summary> /// <param name="evt"></param> public override void ProcessLogic(PropertyMessage evt) { if (evt.PropertyName.Equals("DeletePartMessage")) { //给参数赋值 DeleteCommandStr str = (DeleteCommandStr)evt.NewValue; CubeDeleteControllCommand cmd = new CubeDeleteControllCommand(); cmd.ObjectId = str.ObjectID; _commandService.GetCommandStack().Execute(cmd); } }