Esempio n. 1
0
        private void SetupUI()
        {
            dataGridView = new DataGridView();

            ((System.ComponentModel.ISupportInitialize)(dataGridView)).BeginInit();
            this.SuspendLayout();

            //
            // dataGridView
            //
            dataGridView.AllowUserToAddRows          = false;
            dataGridView.AllowUserToDeleteRows       = false;
            dataGridView.AllowUserToResizeColumns    = false;
            dataGridView.AllowUserToResizeRows       = false;
            dataGridView.AutoSizeColumnsMode         = DataGridViewAutoSizeColumnsMode.Fill;
            dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            dataGridView.ColumnHeadersVisible        = false;
            dataGridView.Enabled                    = false;
            dataGridView.Location                   = new Point(0, 0);
            dataGridView.Margin                     = new Padding(0);
            dataGridView.MultiSelect                = false;
            dataGridView.Name                       = "dataGridView";
            dataGridView.ReadOnly                   = true;
            dataGridView.RowHeadersVisible          = false;
            dataGridView.ScrollBars                 = ScrollBars.None;
            dataGridView.Size                       = new Size(200, 80);
            dataGridView.BorderStyle                = BorderStyle.None;
            dataGridView.CellBorderStyle            = DataGridViewCellBorderStyle.None;
            dataGridView.BackgroundColor            = Color.FromArgb(80, 80, 80);
            dataGridView.DefaultCellStyle.BackColor = Color.FromArgb(80, 80, 80);

            this.AutoScaleDimensions = new SizeF(6F, 13F);
            this.AutoScaleMode       = AutoScaleMode.Font;
            this.ClientSize          = new Size(200, 80);
            this.Controls.Add(dataGridView);
            this.FormBorderStyle = FormBorderStyle.None;
            this.Name            = "TimelineView";
            this.Text            = "Timeline";
            this.TopMost         = true;
            this.ShowInTaskbar   = false;
            ((System.ComponentModel.ISupportInitialize)(dataGridView)).EndInit();
            this.ResumeLayout(false);

            TransparencyKey = Color.FromArgb(80, 80, 80);

            buttons = new OverlayButtonsForm(controller);
        }
Esempio n. 2
0
        private void SetupUI()
        {
            dataGridView = new DataGridView();

            ((System.ComponentModel.ISupportInitialize)(dataGridView)).BeginInit();
            this.SuspendLayout();

            //
            // dataGridView
            //
            dataGridView.AllowUserToAddRows = false;
            dataGridView.AllowUserToDeleteRows = false;
            dataGridView.AllowUserToResizeColumns = false;
            dataGridView.AllowUserToResizeRows = false;
            dataGridView.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
            dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            dataGridView.ColumnHeadersVisible = false;
            dataGridView.Enabled = false;
            dataGridView.Location = new Point(0, 0);
            dataGridView.Margin = new Padding(0);
            dataGridView.MultiSelect = false;
            dataGridView.Name = "dataGridView";
            dataGridView.ReadOnly = true;
            dataGridView.RowHeadersVisible = false;
            dataGridView.ScrollBars = ScrollBars.None;
            dataGridView.Size = new Size(200, 80);

            this.AutoScaleDimensions = new SizeF(6F, 13F);
            this.AutoScaleMode = AutoScaleMode.Font;
            this.ClientSize = new Size(200, 80);
            this.Controls.Add(dataGridView);
            this.FormBorderStyle = FormBorderStyle.None;
            this.Name = "TimelineView";
            this.Text = "Timeline";
            this.TopMost = true;
            this.ShowInTaskbar = false;
            ((System.ComponentModel.ISupportInitialize)(dataGridView)).EndInit();
            this.ResumeLayout(false);

            buttons = new OverlayButtonsForm(controller);
        }