예제 #1
0
        protected override void Dispose(bool disposing)
        {
            Row.RowToggled                -= RowToggledHandler;
            Row.RowHeightChanged          -= RowHeightChangedHandler;
            Row.RowHeightResized          -= RowHeightResizedHandler;
            Row.RowLabelContextMenuSelect -= RowLabelContextMenuHandler;
            Vixen.Utility.cEventHelper.RemoveAllEventHandlers(this);
            Vixen.Utility.cEventHelper.RemoveAllEventHandlers(TimeInfo);
            TimeInfo = null;

            if (grid != null)
            {
                grid.Scroll -= GridScrolledHandler;
                grid.VerticalOffsetChanged -= GridScrollVerticalHandler;
                grid.Dispose();
                Vixen.Utility.cEventHelper.RemoveAllEventHandlers(grid);
                grid = null;
            }

            if (timelineRowList != null)
            {
                timelineRowList.Dispose();
                timelineRowList = null;
            }
            waveform?.Dispose();
            waveform = null;

            MarksBar?.Dispose();
            MarksBar = null;

            ruler?.Dispose();
            ruler = null;

            base.Dispose(disposing);
        }
예제 #2
0
        // Panel 1 - the left side of the splitContainer
        private void InitializePanel1()
        {
            splitContainer.Panel1.SuspendLayout();
            splitContainer.Panel1.BackColor = ThemeColorTable.TimeLinePanel1BackColor;

            // Row List
            timelineRowList = new RowList()
            {
                Anchor          = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right,
                DottedLineColor = ThemeColorTable.ForeColor,
                Name            = "timelineRowList"
            };
            splitContainer.Panel1.Controls.Add(timelineRowList);

            splitContainer.Panel1.ResumeLayout(false);
            splitContainer.Panel1.PerformLayout();
        }
예제 #3
0
        // Panel 1 - the left side of the splitContainer
        private void InitializePanel1()
        {
            splitContainer.Panel1.SuspendLayout();
            splitContainer.Panel1.BackColor = Color.FromArgb(200, 200, 200);

            // Row List
            timelineRowList = new RowList()
            {
                Anchor          = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right,
                DottedLineColor = Color.Black,
                Name            = "timelineRowList",
            };
            splitContainer.Panel1.Controls.Add(timelineRowList);

            splitContainer.Panel1.ResumeLayout(false);
            splitContainer.Panel1.PerformLayout();
        }