示例#1
0
        public void DesubscribeFrom(CommandCenter master)
        {
            master.WhenSelectAll       -= SelectAll;
            master.WhenDeselectAll     -= DeselectAll;
            master.WhenToggleSelectAll -= ToggleSelectAll;

            master.WhenCursor_Multiply -= MultiplyCursor;
            master.WhenCursor_Divide   -= DivideCursor;
            master.WhenCursor_ResetOne -= ResetCursorToOne;

            master.WhenPreviewTimeChanged -= ChangeTime_Preview;
            master.WhenPreviewToneChanged -= ChangeTone_Preview;
            master.WhenTimeChanged        -= ChangeTime;
            master.WhenToneChanged        -= ChangeTone;

            master.WhenTimeStart -= StartTime;
            master.WhenToneStart -= StartTone;
            master.WhenTimeReset -= ResetTime;
            master.WhenToneReset -= ResetTone;

            master.WhenNotePlacementStart  -= StartNotePlacement;
            master.WhenNotePlacementFinish -= FinishNotePlacement;

            master.WhenSelectionStart  -= StartSelection;
            master.WhenSelectionFinish -= FinishSelection;

            master.WhenDeleteSelection -= DeleteSelection;
            master.WhenEraseSelection  -= EraseSelection;

            master.WhenUnitPicking -= Delegate_CaretUnitPicking;
        }
示例#2
0
        public void SubscribeTo(CommandCenter master)
        {
            master.WhenSelectAll       += SelectAll;
            master.WhenDeselectAll     += DeselectAll;
            master.WhenToggleSelectAll += ToggleSelectAll;

            master.WhenCursor_Multiply += MultiplyCursor;
            master.WhenCursor_Divide   += DivideCursor;
            master.WhenCursor_ResetOne += ResetCursorToOne;

            master.WhenPreviewTimeChanged += ChangeTime_Preview;
            master.WhenPreviewToneChanged += ChangeTone_Preview;
            master.WhenTimeChanged        += ChangeTime;
            master.WhenToneChanged        += ChangeTone;

            master.WhenTimeStart += StartTime;
            master.WhenToneStart += StartTone;
            master.WhenTimeReset += ResetTime;
            master.WhenToneReset += ResetTone;

            master.WhenNotePlacementStart  += StartNotePlacement;
            master.WhenNotePlacementFinish += FinishNotePlacement;

            master.WhenSelectionStart  += StartSelection;
            master.WhenSelectionFinish += FinishSelection;

            master.WhenDeleteSelection += DeleteSelection;
            master.WhenEraseSelection  += EraseSelection;

            master.WhenUnitPicking += Delegate_CaretUnitPicking;
        }
示例#3
0
 public InputController(
     CommandCenter commandcenter
     )
 {
     this.commandcenter = commandcenter;
 }