310 lines
17 KiB
C#
310 lines
17 KiB
C#
namespace CutToLength
|
|
{
|
|
partial class MainForm
|
|
{
|
|
/// <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 dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
|
this.TotalLength = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
|
|
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
|
|
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
|
|
this.saveButton = new System.Windows.Forms.ToolStripButton();
|
|
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
|
this.runButton = new System.Windows.Forms.ToolStripButton();
|
|
this.comboBox1 = new System.Windows.Forms.ComboBox();
|
|
this.textBox1 = new System.Windows.Forms.TextBox();
|
|
this.nameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.lengthDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.quantityDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.itemBindingSource = new System.Windows.Forms.BindingSource(this.components);
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
this.label4 = new System.Windows.Forms.Label();
|
|
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
|
|
this.toolStrip1.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.itemBindingSource)).BeginInit();
|
|
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.TotalLength});
|
|
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;
|
|
//
|
|
// TotalLength
|
|
//
|
|
this.TotalLength.DataPropertyName = "TotalLength";
|
|
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Info;
|
|
dataGridViewCellStyle4.Format = "N3";
|
|
this.TotalLength.DefaultCellStyle = dataGridViewCellStyle4;
|
|
this.TotalLength.HeaderText = "Total Length";
|
|
this.TotalLength.Name = "TotalLength";
|
|
this.TotalLength.ReadOnly = true;
|
|
//
|
|
// 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});
|
|
//
|
|
// toolStrip1
|
|
//
|
|
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
this.toolStripButton1,
|
|
this.saveButton,
|
|
this.toolStripSeparator1,
|
|
this.runButton});
|
|
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);
|
|
//
|
|
// saveButton
|
|
//
|
|
this.saveButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
|
this.saveButton.Image = global::CutToLength.Properties.Resources.Save_32;
|
|
this.saveButton.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
|
|
this.saveButton.ImageTransparentColor = System.Drawing.Color.Magenta;
|
|
this.saveButton.Name = "saveButton";
|
|
this.saveButton.Padding = new System.Windows.Forms.Padding(5, 0, 5, 0);
|
|
this.saveButton.Size = new System.Drawing.Size(46, 36);
|
|
this.saveButton.Text = "Save";
|
|
this.saveButton.Click += new System.EventHandler(this.saveButton_Click);
|
|
//
|
|
// toolStripSeparator1
|
|
//
|
|
this.toolStripSeparator1.Name = "toolStripSeparator1";
|
|
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 39);
|
|
//
|
|
// runButton
|
|
//
|
|
this.runButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
|
this.runButton.Image = global::CutToLength.Properties.Resources.Circled_Play_32;
|
|
this.runButton.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
|
|
this.runButton.ImageTransparentColor = System.Drawing.Color.Magenta;
|
|
this.runButton.Name = "runButton";
|
|
this.runButton.Padding = new System.Windows.Forms.Padding(5, 0, 5, 0);
|
|
this.runButton.Size = new System.Drawing.Size(46, 36);
|
|
this.runButton.Text = "Run";
|
|
this.runButton.Click += new System.EventHandler(this.runButton_Click);
|
|
//
|
|
// comboBox1
|
|
//
|
|
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.comboBox1.FormattingEnabled = true;
|
|
this.comboBox1.Location = new System.Drawing.Point(409, 42);
|
|
this.comboBox1.Name = "comboBox1";
|
|
this.comboBox1.Size = new System.Drawing.Size(184, 25);
|
|
this.comboBox1.TabIndex = 8;
|
|
this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
|
|
//
|
|
// textBox1
|
|
//
|
|
this.textBox1.Location = new System.Drawing.Point(409, 73);
|
|
this.textBox1.Name = "textBox1";
|
|
this.textBox1.Size = new System.Drawing.Size(184, 25);
|
|
this.textBox1.TabIndex = 9;
|
|
this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
|
|
//
|
|
// nameDataGridViewTextBoxColumn
|
|
//
|
|
this.nameDataGridViewTextBoxColumn.DataPropertyName = "Name";
|
|
this.nameDataGridViewTextBoxColumn.HeaderText = "Name";
|
|
this.nameDataGridViewTextBoxColumn.Name = "nameDataGridViewTextBoxColumn";
|
|
this.nameDataGridViewTextBoxColumn.Width = 200;
|
|
//
|
|
// lengthDataGridViewTextBoxColumn
|
|
//
|
|
this.lengthDataGridViewTextBoxColumn.DataPropertyName = "Length";
|
|
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
this.lengthDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle5;
|
|
this.lengthDataGridViewTextBoxColumn.HeaderText = "Length";
|
|
this.lengthDataGridViewTextBoxColumn.Name = "lengthDataGridViewTextBoxColumn";
|
|
this.lengthDataGridViewTextBoxColumn.Width = 120;
|
|
//
|
|
// quantityDataGridViewTextBoxColumn
|
|
//
|
|
this.quantityDataGridViewTextBoxColumn.DataPropertyName = "Quantity";
|
|
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
this.quantityDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle6;
|
|
this.quantityDataGridViewTextBoxColumn.HeaderText = "Qty";
|
|
this.quantityDataGridViewTextBoxColumn.Name = "quantityDataGridViewTextBoxColumn";
|
|
this.quantityDataGridViewTextBoxColumn.Width = 50;
|
|
//
|
|
// itemBindingSource
|
|
//
|
|
this.itemBindingSource.DataSource = typeof(CutToLength.UIItem);
|
|
//
|
|
// 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(322, 45);
|
|
this.label3.Name = "label3";
|
|
this.label3.Size = new System.Drawing.Size(81, 17);
|
|
this.label3.TabIndex = 0;
|
|
this.label3.Text = "Cut method";
|
|
//
|
|
// label4
|
|
//
|
|
this.label4.AutoSize = true;
|
|
this.label4.Font = new System.Drawing.Font("Segoe UI Semibold", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.label4.ForeColor = System.Drawing.Color.Blue;
|
|
this.label4.Location = new System.Drawing.Point(333, 76);
|
|
this.label4.Name = "label4";
|
|
this.label4.Size = new System.Drawing.Size(70, 17);
|
|
this.label4.TabIndex = 0;
|
|
this.label4.Text = "Kerf width";
|
|
//
|
|
// MainForm
|
|
//
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
|
this.ClientSize = new System.Drawing.Size(787, 496);
|
|
this.Controls.Add(this.textBox1);
|
|
this.Controls.Add(this.comboBox1);
|
|
this.Controls.Add(this.toolStrip1);
|
|
this.Controls.Add(this.numericUpDown1);
|
|
this.Controls.Add(this.label4);
|
|
this.Controls.Add(this.label3);
|
|
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 = "MainForm";
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
this.Text = "Cut To Length";
|
|
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
|
|
this.toolStrip1.ResumeLayout(false);
|
|
this.toolStrip1.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.itemBindingSource)).EndInit();
|
|
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.ToolStrip toolStrip1;
|
|
private System.Windows.Forms.ToolStripButton toolStripButton1;
|
|
private System.Windows.Forms.ToolStripButton saveButton;
|
|
private System.Windows.Forms.ToolStripButton runButton;
|
|
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 TotalLength;
|
|
private System.Windows.Forms.ComboBox comboBox1;
|
|
private System.Windows.Forms.TextBox textBox1;
|
|
private System.Windows.Forms.Label label3;
|
|
private System.Windows.Forms.Label label4;
|
|
}
|
|
}
|
|
|