Пример #1
0
 public NoteControl(PartEditor partEditor)
 {
     PartEditor = partEditor;
     InitializeComponent();
     minheight      = Settings.Current.yScale;
     OnNoteChanged += OnNoteChanged_Note;
 }
Пример #2
0
 public PartEditor()
 {
     Instance       = this;
     OnPartChanged += OnPartChanged_Part;
     //xScale = 480.0 / Settings.RESOLUTION;
     minWidth = minBars * Settings.Current.BeatPerBar * RESOLUTION;
     InitializeComponent();
     DrawInit();
     Loaded += OnLoaded_Part;
     Render.Current.OnRenderComplited += OnRenderComplited_PartEditor;
 }
Пример #3
0
        public NoteThumb(PartEditor partEditor)
        {
            PartEditor     = partEditor;
            DragStarted   += new DragStartedEventHandler(DragEnter_Thumb);
            DragDelta     += new DragDeltaEventHandler(this.NoteThumb_DragDelta);
            DragCompleted += new DragCompletedEventHandler(DragCompleted_Thumb);
            MouseLeave    += (s, e) => Mouse.OverrideCursor = Cursors.Arrow;
            // MouseEnter += new MouseEventHandler(MouseMove_Thumb);
            MouseMove += new MouseEventHandler(MouseMove_Thumb);

            minwidth  = Settings.Resolution / Project.BeatUnit * PartEditor.xScale;
            maxwidth  = Settings.Resolution * Project.BeatPerBar * 2 * PartEditor.xScale; // 2 такта
            minheight = PartEditor.yScale;
        }