void DisableMousePost() { if (ShownMousePost) { ShownMousePost = false; PianoWindow.RedrawPiano(); ParamWindow.RedrawPiano(); } }
public void AllocView(IntPtr ObjectPtr) { if (Alloced) { Track_PitchView.setPartsObjectPtr(ObjectPtr); Track_NoteView.setPartsObjectPtr(ObjectPtr); Global_ActionView.setPartsObjectPtr(ObjectPtr); Param_PitchView.setPartsObjectPtr(ObjectPtr); Param_DynamicView.setPartsObjectPtr(ObjectPtr); Track_NoteView.setSingerDataFinder(SingerDataFinders); } else { Track_NoteView = new NoteView(ObjectPtr, this.PianoWindow); Track_NoteView.setSingerDataFinder(SingerDataFinders); Track_PitchView = new PitchView(ObjectPtr, this.PianoWindow); Param_PitchView = new PITParamView(ObjectPtr, this.ParamWindow); Param_DynamicView = new DYNParamView(ObjectPtr, this.ParamWindow); Global_ActionView = new ActionView(ObjectPtr, this.PianoWindow, this.ParamWindow); CopyPasteController = new CopyPaste(ref Track_NoteView, ref Track_PitchView); CopyPasteController.NoteCopyMemoryChanged += CopyPasteController_NoteCopyMemoryChanged; Track_NoteView.NoteActionBegin += Track_NoteView_NoteActionBegin; Track_NoteView.NoteActionEnd += Track_NoteView_NoteActionEnd; Track_NoteView.NoteSelecting += Track_NoteView_NoteSelecting; Track_PitchView.PitchActionBegin += Track_PitchView_PitchActionBegin; Track_PitchView.PitchActionEnd += Track_PitchView_PitchActionEnd; Param_DynamicView.DynActionBegin += Param_DynamicView_DynActionBegin; Param_DynamicView.DynActionEnd += Param_DynamicView_DynActionEnd; Param_PitchView.PitchActionBegin += Param_PitchView_PitchActionBegin; Param_PitchView.PitchActionEnd += Param_PitchView_PitchActionEnd; Global_ActionView.TickPosChange += Global_ActionView_TickPosChange; Track_NoteView.NoteSelectListChange += Track_NoteView_NoteSelectListChange; Alloced = true; SetNoteViewTool(NoteView.NoteToolsType.Select); SetParamGraphicTool(PitchView.PitchDragingType.DrawGraphS); SwitchParamView(ParamViewType.Dynamic); } try { ParamWindow.RedrawPiano(); PianoWindow.RedrawPiano(); LastSelectIndex = -1; } catch {; } }