Now main form is also responsive

This commit is contained in:
2023-05-25 13:42:57 +02:00
parent 5a6ca35334
commit f417f3581a
3 changed files with 116 additions and 55 deletions
+54 -54
View File
@@ -44,23 +44,23 @@
this.gpbxOvertakes = new System.Windows.Forms.GroupBox();
this.lsbOvertakes = new System.Windows.Forms.ListBox();
this.gpbxDriverInfos = new System.Windows.Forms.GroupBox();
this.lblCurrentDriverPosition = new System.Windows.Forms.Label();
this.lblCurrentDriverDRS = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.lblCurrentDriverTyreAge = new System.Windows.Forms.Label();
this.lblCurrentDriverTyreType = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.lblCurrentDriverPosition = new System.Windows.Forms.Label();
this.lblCurrentDriverGapToLeader = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.lblCurrentDriverTyreAge = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.pnlCurrentDriverLapsHistory = new System.Windows.Forms.Panel();
this.lblCurrentDriverLapTime = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.lblCurrentDriverName = new System.Windows.Forms.Label();
this.gpbxLapTimes = new System.Windows.Forms.GroupBox();
this.pnlSlowest = new System.Windows.Forms.Panel();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.pnlSlowest = new System.Windows.Forms.Panel();
this.pnlFastest = new System.Windows.Forms.Panel();
this.gpbxBattles = new System.Windows.Forms.GroupBox();
this.pnlBattles = new System.Windows.Forms.Panel();
@@ -215,7 +215,6 @@
//
// gpbxRanking
//
this.gpbxRanking.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.gpbxRanking.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(79)))), ((int)(((byte)(79)))), ((int)(((byte)(79)))));
this.gpbxRanking.Controls.Add(this.pnlLiveRanking);
this.gpbxRanking.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(252)))), ((int)(((byte)(252)))));
@@ -293,16 +292,6 @@
this.gpbxDriverInfos.Text = "Driver infos";
this.gpbxDriverInfos.Paint += new System.Windows.Forms.PaintEventHandler(this.removeBorders);
//
// lblCurrentDriverPosition
//
this.lblCurrentDriverPosition.AutoSize = true;
this.lblCurrentDriverPosition.Font = new System.Drawing.Font("Microsoft YaHei UI", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblCurrentDriverPosition.Location = new System.Drawing.Point(216, 21);
this.lblCurrentDriverPosition.Name = "lblCurrentDriverPosition";
this.lblCurrentDriverPosition.Size = new System.Drawing.Size(43, 36);
this.lblCurrentDriverPosition.TabIndex = 12;
this.lblCurrentDriverPosition.Text = "-1";
//
// lblCurrentDriverDRS
//
this.lblCurrentDriverDRS.AutoSize = true;
@@ -313,26 +302,6 @@
this.lblCurrentDriverDRS.TabIndex = 11;
this.lblCurrentDriverDRS.Text = "No";
//
// label11
//
this.label11.AutoSize = true;
this.label11.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
this.label11.Location = new System.Drawing.Point(7, 175);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(52, 27);
this.label11.TabIndex = 10;
this.label11.Text = "DRS";
//
// lblCurrentDriverTyreAge
//
this.lblCurrentDriverTyreAge.AutoSize = true;
this.lblCurrentDriverTyreAge.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
this.lblCurrentDriverTyreAge.Location = new System.Drawing.Point(191, 138);
this.lblCurrentDriverTyreAge.Name = "lblCurrentDriverTyreAge";
this.lblCurrentDriverTyreAge.Size = new System.Drawing.Size(85, 27);
this.lblCurrentDriverTyreAge.TabIndex = 9;
this.lblCurrentDriverTyreAge.Text = "10 Laps";
//
// lblCurrentDriverTyreType
//
this.lblCurrentDriverTyreType.AutoSize = true;
@@ -343,15 +312,25 @@
this.lblCurrentDriverTyreType.TabIndex = 8;
this.lblCurrentDriverTyreType.Text = "Undefined";
//
// label8
// label11
//
this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
this.label8.Location = new System.Drawing.Point(7, 138);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(58, 27);
this.label8.TabIndex = 7;
this.label8.Text = "Tyre:";
this.label11.AutoSize = true;
this.label11.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
this.label11.Location = new System.Drawing.Point(7, 175);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(52, 27);
this.label11.TabIndex = 10;
this.label11.Text = "DRS";
//
// lblCurrentDriverPosition
//
this.lblCurrentDriverPosition.AutoSize = true;
this.lblCurrentDriverPosition.Font = new System.Drawing.Font("Microsoft YaHei UI", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblCurrentDriverPosition.Location = new System.Drawing.Point(216, 21);
this.lblCurrentDriverPosition.Name = "lblCurrentDriverPosition";
this.lblCurrentDriverPosition.Size = new System.Drawing.Size(43, 36);
this.lblCurrentDriverPosition.TabIndex = 12;
this.lblCurrentDriverPosition.Text = "-1";
//
// lblCurrentDriverGapToLeader
//
@@ -373,6 +352,26 @@
this.label5.TabIndex = 5;
this.label5.Text = "Gap to leader :";
//
// label8
//
this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
this.label8.Location = new System.Drawing.Point(7, 138);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(58, 27);
this.label8.TabIndex = 7;
this.label8.Text = "Tyre:";
//
// lblCurrentDriverTyreAge
//
this.lblCurrentDriverTyreAge.AutoSize = true;
this.lblCurrentDriverTyreAge.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
this.lblCurrentDriverTyreAge.Location = new System.Drawing.Point(191, 138);
this.lblCurrentDriverTyreAge.Name = "lblCurrentDriverTyreAge";
this.lblCurrentDriverTyreAge.Size = new System.Drawing.Size(85, 27);
this.lblCurrentDriverTyreAge.TabIndex = 9;
this.lblCurrentDriverTyreAge.Text = "10 Laps";
//
// label6
//
this.label6.AutoSize = true;
@@ -440,6 +439,15 @@
this.gpbxLapTimes.Text = "Last five laps";
this.gpbxLapTimes.Paint += new System.Windows.Forms.PaintEventHandler(this.removeBorders);
//
// pnlSlowest
//
this.pnlSlowest.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
this.pnlSlowest.Location = new System.Drawing.Point(280, 39);
this.pnlSlowest.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.pnlSlowest.Name = "pnlSlowest";
this.pnlSlowest.Size = new System.Drawing.Size(264, 228);
this.pnlSlowest.TabIndex = 1;
//
// label3
//
this.label3.AutoSize = true;
@@ -458,15 +466,6 @@
this.label2.TabIndex = 2;
this.label2.Text = "Fastests";
//
// pnlSlowest
//
this.pnlSlowest.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
this.pnlSlowest.Location = new System.Drawing.Point(280, 39);
this.pnlSlowest.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.pnlSlowest.Name = "pnlSlowest";
this.pnlSlowest.Size = new System.Drawing.Size(264, 228);
this.pnlSlowest.TabIndex = 1;
//
// pnlFastest
//
this.pnlFastest.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
@@ -506,7 +505,7 @@
this.label9.BackColor = System.Drawing.Color.Transparent;
this.label9.Font = new System.Drawing.Font("Microsoft YaHei UI", 19.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(252)))), ((int)(((byte)(252)))));
this.label9.Location = new System.Drawing.Point(30, 6);
this.label9.Location = new System.Drawing.Point(33, 9);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(221, 43);
this.label9.TabIndex = 12;
@@ -527,6 +526,7 @@
this.Controls.Add(this.gpbxControls);
this.Font = new System.Drawing.Font("Microsoft YaHei UI", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.MinimumSize = new System.Drawing.Size(1182, 808);
this.Name = "Main";
this.Text = "Track Trends";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);