todo: organize entry rows Y positions; figure out how to update value label

This commit is contained in:
nikzori
2024-12-26 15:59:39 +03:00
parent c4888697a9
commit 41062d47e5
2 changed files with 119 additions and 150 deletions

57
Datasheet.Designer.cs generated
View File

@@ -28,33 +28,18 @@
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Datasheet));
this.DGV_Device = new System.Windows.Forms.DataGridView();
this.Label_DeviceNameLabel = new System.Windows.Forms.Label();
this.Label_DescriptionLabel = new System.Windows.Forms.Label();
this.Label_DeviceName = new System.Windows.Forms.Label();
this.Label_Description = new System.Windows.Forms.Label();
this.Button_StartStop = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.DGV_Device)).BeginInit();
this.Panel_Device = new System.Windows.Forms.Panel();
this.PD_Scrollbar = new System.Windows.Forms.VScrollBar();
this.label1 = new System.Windows.Forms.Label();
this.Panel_Device.SuspendLayout();
this.SuspendLayout();
//
// DGV_Device
//
this.DGV_Device.AllowUserToAddRows = false;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.DGV_Device.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
this.DGV_Device.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.DGV_Device.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.DGV_Device.Location = new System.Drawing.Point(13, 68);
this.DGV_Device.MultiSelect = false;
this.DGV_Device.Name = "DGV_Device";
this.DGV_Device.RowHeadersVisible = false;
this.DGV_Device.Size = new System.Drawing.Size(567, 420);
this.DGV_Device.TabIndex = 0;
//
// Label_DeviceNameLabel
//
this.Label_DeviceNameLabel.AutoSize = true;
@@ -102,33 +87,59 @@
this.Button_StartStop.UseVisualStyleBackColor = true;
this.Button_StartStop.Click += new System.EventHandler(this.Button_StartStop_Click);
//
// Panel_Device
//
this.Panel_Device.Controls.Add(this.PD_Scrollbar);
this.Panel_Device.Location = new System.Drawing.Point(13, 77);
this.Panel_Device.Name = "Panel_Device";
this.Panel_Device.Size = new System.Drawing.Size(567, 411);
this.Panel_Device.TabIndex = 6;
//
// PD_Scrollbar
//
this.PD_Scrollbar.Location = new System.Drawing.Point(549, 0);
this.PD_Scrollbar.Name = "PD_Scrollbar";
this.PD_Scrollbar.Size = new System.Drawing.Size(17, 440);
this.PD_Scrollbar.TabIndex = 0;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(13, 64);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(14, 13);
this.label1.TabIndex = 7;
this.label1.Text = "#";
//
// Datasheet
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(592, 500);
this.Controls.Add(this.label1);
this.Controls.Add(this.Panel_Device);
this.Controls.Add(this.Button_StartStop);
this.Controls.Add(this.Label_Description);
this.Controls.Add(this.Label_DeviceName);
this.Controls.Add(this.Label_DescriptionLabel);
this.Controls.Add(this.Label_DeviceNameLabel);
this.Controls.Add(this.DGV_Device);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "Datasheet";
this.Text = "Datasheet";
((System.ComponentModel.ISupportInitialize)(this.DGV_Device)).EndInit();
this.Panel_Device.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.DataGridView DGV_Device;
private System.Windows.Forms.Label Label_DeviceNameLabel;
private System.Windows.Forms.Label Label_DescriptionLabel;
private System.Windows.Forms.Label Label_DeviceName;
private System.Windows.Forms.Label Label_Description;
private System.Windows.Forms.Button Button_StartStop;
private System.Windows.Forms.Panel Panel_Device;
private System.Windows.Forms.VScrollBar PD_Scrollbar;
private System.Windows.Forms.Label label1;
}
}