public SheetMusicEditor( StorageObjectID storageobjectID, EditorFile file, IFactory <ITrackController> factory ) : base( storageobjectID, file, factory ) { hints = new OverrideTrackControllerHints(this); container = file[TrackControllerContainer.ItemName] as TrackControllerContainer; Tracks.ItemAdded += Tracks_ItemAdded; Tracks.ItemRemoved += Tracks_ItemRemoved; CommandCenter.WhenCursor_Divide += CommandCenter_WhenCursor_Divide; CommandCenter.WhenCursor_Multiply += CommandCenter_WhenCursor_Multiply; CommandCenter.WhenCursor_ResetOne += CommandCenter_WhenCursor_ResetOne; CommandCenter.WhenSelectAll += CommandCenter_WhenSelectAll; CommandCenter.WhenDeselectAll += CommandCenter_WhenDeselectAll; CommandCenter.WhenToggleSelectAll += CommandCenter_WhenToggleSelectAll; CommandCenter.WhenToneChanged += CommandCenter_WhenToneChanged; CommandCenter.WhenTimeChanged += CommandCenter_WhenTimeChanged; CommandCenter.WhenPreviewToneChanged += CommandCenter_WhenPreviewToneChanged; CommandCenter.WhenPreviewTimeChanged += CommandCenter_WhenPreviewTimeChanged; CommandCenter.WhenToneStart += CommandCenter_WhenToneStart; CommandCenter.WhenTimeStart += CommandCenter_WhenTimeStart; CommandCenter.WhenToneReset += CommandCenter_WhenToneReset; CommandCenter.WhenTimeReset += CommandCenter_WhenTimeReset; CommandCenter.WhenSelectionStart += CommandCenter_WhenSelectionStart; CommandCenter.WhenSelectionFinish += CommandCenter_WhenSelectionFinish; CommandCenter.WhenNotePlacementStart += CommandCenter_WhenNotePlacementStart; CommandCenter.WhenNotePlacementFinish += CommandCenter_WhenNotePlacementFinish; CommandCenter.WhenDeleteSelection += CommandCenter_WhenDeleteSelection; CommandCenter.WhenEraseSelection += CommandCenter_WhenEraseSelection; CommandCenter.WhenUnitPicking += CommandCenter_WhenUnitPicking; Pin.Time.ActualTime.AfterChange += Pin_ActualTime_AfterChange; }
public TrackControllerScreen( StorageObjectID storageobjectID, EditorFile file, IFactory <IScreen> factory ) : base( storageobjectID, file, factory ) { container = file[TrackControllerContainer.ItemName] as TrackControllerContainer; var obj = file.Storage[storageobjectID]; controllers = new BoundList <ITrackController>( obj.GetOrMake("controllers").ID, file, container.Controllers ); }