public TrackEditor() { if (!DesignMode) { this.DoubleBuffered = true; this.PlaybackPosition = 0; this.InPlayback = false; IsMouseOver = false; ShowNotesGrid = false; GridScalar = 0.25; CurrentSelectionState = EditorSelectionState.Idle; Control.CheckForIllegalCrossThreadCalls = true; CopyChords = new CopyChordList(this); HScroll = new HScrollBar(); HScroll.Dock = System.Windows.Forms.DockStyle.Bottom; HScroll.SmallChange = Utility.HScrollSmallChange; HScroll.LargeChange = Utility.HScrollLargeChange; this.Controls.Add(HScroll); } }
public WebTabTrackProperties(Track track, TrackEditor editorPro) { this.Track = track; this.Scale = 1.0; this.Offset = 3.0; this.Import = true; Events = new CopyChordList(editorPro); editorPro.SetTrack(track, GuitarDifficulty.Expert); Events.AddRange(editorPro.Messages.Chords.ToList()); }