| | |
| | | { |
| | | btnCollectionIcon.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | btnCollectionIcon.IsSelected = function.collection = !btnCollectionIcon.IsSelected; |
| | | btnCollectionIcon.IsSelected = function.collect = !btnCollectionIcon.IsSelected; |
| | | function.SaveFunctionData(); |
| | | }; |
| | | } |
| | | /// <summary> |
| | | /// 加载场景控制事件 |
| | | /// </summary> |
| | | void LoadEvent_ControlScene() |
| | | { |
| | | EventHandler<MouseEventArgs> upEvent = (sender, e) => { |
| | | Control.Ins.ControlScene(function as Scene); |
| | | string msg = function.name + Language.StringByID(StringId.AlreadyOpened); |
| | | new PublicAssmebly().TipMsgAutoClose(msg, false); |
| | | }; |
| | | btnName.MouseUpEventHandler = upEvent; |
| | | btnFromFloor.MouseUpEventHandler = upEvent; |
| | | bodyDiv.MouseUpEventHandler = upEvent; |
| | | } |
| | | |
| | | /// <summary> |