void BaseController_NoteActionEnd(DirectUI.Utils.PianoUtils.NoteView.NoteDragingType eventType) { if (eventType == DirectUI.Utils.PianoUtils.NoteView.NoteDragingType.NoteMove || eventType == DirectUI.Utils.PianoUtils.NoteView.NoteDragingType.NoteAdd || eventType == DirectUI.Utils.PianoUtils.NoteView.NoteDragingType.NoteDelete || eventType == DirectUI.Utils.PianoUtils.NoteView.NoteDragingType.NoteLength) { tw.GuiRefresh(); } }
void BaseController_NoteActionEnd(DirectUI.Utils.PianoUtils.NoteView.NoteDragingType eventType) { switch (eventType) { case DirectUI.Utils.PianoUtils.NoteView.NoteDragingType.LyricEdit: AddUndoPoint("音符: 歌词编辑"); break; case DirectUI.Utils.PianoUtils.NoteView.NoteDragingType.NoteAdd: AddUndoPoint("音符: 添加"); break; case DirectUI.Utils.PianoUtils.NoteView.NoteDragingType.NoteDelete: AddUndoPoint("音符: 删除"); break; case DirectUI.Utils.PianoUtils.NoteView.NoteDragingType.NoteLength: AddUndoPoint("音符: 长度变更"); break; case DirectUI.Utils.PianoUtils.NoteView.NoteDragingType.NoteMove: AddUndoPoint("音符: 移动"); break; } }
void BaseController_NoteActionBegin(DirectUI.Utils.PianoUtils.NoteView.NoteDragingType eventType) { RegisterPoint(); }