296 lines
16 KiB
C#
296 lines
16 KiB
C#
namespace CutToLength
|
|
{
|
|
partial class Form1
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.components = new System.ComponentModel.Container();
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
|
this.itemBindingSource = new System.Windows.Forms.BindingSource(this.components);
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
|
|
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
|
|
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
|
|
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
|
|
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
|
this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
|
|
this.nameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.lengthDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.quantityDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.totalLengthDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.itemBindingSource)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
|
|
this.toolStrip1.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// dataGridView1
|
|
//
|
|
this.dataGridView1.AllowUserToResizeRows = false;
|
|
this.dataGridView1.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.dataGridView1.AutoGenerateColumns = false;
|
|
this.dataGridView1.BackgroundColor = System.Drawing.Color.White;
|
|
this.dataGridView1.ClipboardCopyMode = System.Windows.Forms.DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
|
|
this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
|
|
this.dataGridView1.ColumnHeadersHeight = 35;
|
|
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
|
this.nameDataGridViewTextBoxColumn,
|
|
this.lengthDataGridViewTextBoxColumn,
|
|
this.quantityDataGridViewTextBoxColumn,
|
|
this.totalLengthDataGridViewTextBoxColumn});
|
|
this.dataGridView1.DataSource = this.itemBindingSource;
|
|
this.dataGridView1.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
|
|
this.dataGridView1.Location = new System.Drawing.Point(12, 122);
|
|
this.dataGridView1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
|
this.dataGridView1.Name = "dataGridView1";
|
|
this.dataGridView1.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
|
|
this.dataGridView1.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
|
|
this.dataGridView1.RowTemplate.Height = 30;
|
|
this.dataGridView1.Size = new System.Drawing.Size(763, 361);
|
|
this.dataGridView1.TabIndex = 5;
|
|
//
|
|
// itemBindingSource
|
|
//
|
|
this.itemBindingSource.DataSource = typeof(CutToLength.UIItem);
|
|
//
|
|
// label1
|
|
//
|
|
this.label1.AutoSize = true;
|
|
this.label1.Font = new System.Drawing.Font("Segoe UI Semibold", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.label1.ForeColor = System.Drawing.Color.Blue;
|
|
this.label1.Location = new System.Drawing.Point(21, 101);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new System.Drawing.Size(300, 17);
|
|
this.label1.TabIndex = 4;
|
|
this.label1.Text = "Enter the lengths that will be cut from the stock";
|
|
//
|
|
// label2
|
|
//
|
|
this.label2.AutoSize = true;
|
|
this.label2.Font = new System.Drawing.Font("Segoe UI Semibold", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.label2.ForeColor = System.Drawing.Color.Blue;
|
|
this.label2.Location = new System.Drawing.Point(21, 50);
|
|
this.label2.Name = "label2";
|
|
this.label2.Size = new System.Drawing.Size(84, 17);
|
|
this.label2.TabIndex = 0;
|
|
this.label2.Text = "Stock length";
|
|
//
|
|
// numericUpDown1
|
|
//
|
|
this.numericUpDown1.Location = new System.Drawing.Point(111, 48);
|
|
this.numericUpDown1.Maximum = new decimal(new int[] {
|
|
999999,
|
|
0,
|
|
0,
|
|
0});
|
|
this.numericUpDown1.Name = "numericUpDown1";
|
|
this.numericUpDown1.Size = new System.Drawing.Size(139, 25);
|
|
this.numericUpDown1.TabIndex = 1;
|
|
this.numericUpDown1.Value = new decimal(new int[] {
|
|
240,
|
|
0,
|
|
0,
|
|
0});
|
|
//
|
|
// label3
|
|
//
|
|
this.label3.AutoSize = true;
|
|
this.label3.Font = new System.Drawing.Font("Segoe UI Semibold", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.label3.ForeColor = System.Drawing.Color.Blue;
|
|
this.label3.Location = new System.Drawing.Point(282, 50);
|
|
this.label3.Name = "label3";
|
|
this.label3.Size = new System.Drawing.Size(67, 17);
|
|
this.label3.TabIndex = 2;
|
|
this.label3.Text = "Cut width";
|
|
//
|
|
// numericUpDown2
|
|
//
|
|
this.numericUpDown2.DecimalPlaces = 4;
|
|
this.numericUpDown2.Location = new System.Drawing.Point(355, 48);
|
|
this.numericUpDown2.Maximum = new decimal(new int[] {
|
|
999999,
|
|
0,
|
|
0,
|
|
0});
|
|
this.numericUpDown2.Name = "numericUpDown2";
|
|
this.numericUpDown2.Size = new System.Drawing.Size(139, 25);
|
|
this.numericUpDown2.TabIndex = 3;
|
|
this.numericUpDown2.Value = new decimal(new int[] {
|
|
125,
|
|
0,
|
|
0,
|
|
196608});
|
|
//
|
|
// toolStrip1
|
|
//
|
|
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
this.toolStripButton1,
|
|
this.toolStripButton2,
|
|
this.toolStripSeparator1,
|
|
this.toolStripButton3});
|
|
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
|
|
this.toolStrip1.Name = "toolStrip1";
|
|
this.toolStrip1.Size = new System.Drawing.Size(787, 39);
|
|
this.toolStrip1.TabIndex = 7;
|
|
this.toolStrip1.Text = "toolStrip1";
|
|
//
|
|
// toolStripButton1
|
|
//
|
|
this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
|
this.toolStripButton1.Image = global::CutToLength.Properties.Resources.Open_Folder_32;
|
|
this.toolStripButton1.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
|
|
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
|
|
this.toolStripButton1.Name = "toolStripButton1";
|
|
this.toolStripButton1.Padding = new System.Windows.Forms.Padding(5, 0, 5, 0);
|
|
this.toolStripButton1.Size = new System.Drawing.Size(46, 36);
|
|
this.toolStripButton1.Text = "Open";
|
|
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
|
|
//
|
|
// toolStripButton2
|
|
//
|
|
this.toolStripButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
|
this.toolStripButton2.Image = global::CutToLength.Properties.Resources.Save_32;
|
|
this.toolStripButton2.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
|
|
this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
|
|
this.toolStripButton2.Name = "toolStripButton2";
|
|
this.toolStripButton2.Padding = new System.Windows.Forms.Padding(5, 0, 5, 0);
|
|
this.toolStripButton2.Size = new System.Drawing.Size(46, 36);
|
|
this.toolStripButton2.Text = "Save";
|
|
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
|
|
//
|
|
// toolStripSeparator1
|
|
//
|
|
this.toolStripSeparator1.Name = "toolStripSeparator1";
|
|
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 39);
|
|
//
|
|
// toolStripButton3
|
|
//
|
|
this.toolStripButton3.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
|
this.toolStripButton3.Image = global::CutToLength.Properties.Resources.Circled_Play_32;
|
|
this.toolStripButton3.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
|
|
this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta;
|
|
this.toolStripButton3.Name = "toolStripButton3";
|
|
this.toolStripButton3.Padding = new System.Windows.Forms.Padding(5, 0, 5, 0);
|
|
this.toolStripButton3.Size = new System.Drawing.Size(46, 36);
|
|
this.toolStripButton3.Text = "Run";
|
|
this.toolStripButton3.Click += new System.EventHandler(this.toolStripButton3_Click);
|
|
//
|
|
// nameDataGridViewTextBoxColumn
|
|
//
|
|
this.nameDataGridViewTextBoxColumn.DataPropertyName = "Name";
|
|
this.nameDataGridViewTextBoxColumn.HeaderText = "Name";
|
|
this.nameDataGridViewTextBoxColumn.Name = "nameDataGridViewTextBoxColumn";
|
|
this.nameDataGridViewTextBoxColumn.Width = 200;
|
|
//
|
|
// lengthDataGridViewTextBoxColumn
|
|
//
|
|
this.lengthDataGridViewTextBoxColumn.DataPropertyName = "Length";
|
|
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
this.lengthDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle1;
|
|
this.lengthDataGridViewTextBoxColumn.HeaderText = "Length";
|
|
this.lengthDataGridViewTextBoxColumn.Name = "lengthDataGridViewTextBoxColumn";
|
|
this.lengthDataGridViewTextBoxColumn.Width = 120;
|
|
//
|
|
// quantityDataGridViewTextBoxColumn
|
|
//
|
|
this.quantityDataGridViewTextBoxColumn.DataPropertyName = "Quantity";
|
|
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
this.quantityDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle2;
|
|
this.quantityDataGridViewTextBoxColumn.HeaderText = "Qty";
|
|
this.quantityDataGridViewTextBoxColumn.Name = "quantityDataGridViewTextBoxColumn";
|
|
this.quantityDataGridViewTextBoxColumn.Width = 50;
|
|
//
|
|
// totalLengthDataGridViewTextBoxColumn
|
|
//
|
|
this.totalLengthDataGridViewTextBoxColumn.DataPropertyName = "TotalLength";
|
|
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Info;
|
|
dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
|
this.totalLengthDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle3;
|
|
this.totalLengthDataGridViewTextBoxColumn.HeaderText = "Total Length";
|
|
this.totalLengthDataGridViewTextBoxColumn.Name = "totalLengthDataGridViewTextBoxColumn";
|
|
this.totalLengthDataGridViewTextBoxColumn.ReadOnly = true;
|
|
this.totalLengthDataGridViewTextBoxColumn.Width = 120;
|
|
//
|
|
// Form1
|
|
//
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
|
this.ClientSize = new System.Drawing.Size(787, 496);
|
|
this.Controls.Add(this.toolStrip1);
|
|
this.Controls.Add(this.numericUpDown2);
|
|
this.Controls.Add(this.label3);
|
|
this.Controls.Add(this.numericUpDown1);
|
|
this.Controls.Add(this.label2);
|
|
this.Controls.Add(this.label1);
|
|
this.Controls.Add(this.dataGridView1);
|
|
this.Font = new System.Drawing.Font("Segoe UI", 9.75F, 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(570, 457);
|
|
this.Name = "Form1";
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
this.Text = "Cut To Length";
|
|
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.itemBindingSource)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
|
|
this.toolStrip1.ResumeLayout(false);
|
|
this.toolStrip1.PerformLayout();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
private System.Windows.Forms.DataGridView dataGridView1;
|
|
private System.Windows.Forms.BindingSource itemBindingSource;
|
|
private System.Windows.Forms.Label label1;
|
|
private System.Windows.Forms.Label label2;
|
|
private System.Windows.Forms.NumericUpDown numericUpDown1;
|
|
private System.Windows.Forms.Label label3;
|
|
private System.Windows.Forms.NumericUpDown numericUpDown2;
|
|
private System.Windows.Forms.ToolStrip toolStrip1;
|
|
private System.Windows.Forms.ToolStripButton toolStripButton1;
|
|
private System.Windows.Forms.ToolStripButton toolStripButton2;
|
|
private System.Windows.Forms.ToolStripButton toolStripButton3;
|
|
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn nameDataGridViewTextBoxColumn;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn lengthDataGridViewTextBoxColumn;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn quantityDataGridViewTextBoxColumn;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn totalLengthDataGridViewTextBoxColumn;
|
|
}
|
|
}
|
|
|