CourseWorkKnapsack/forms/ParametersForm.Designer.cs

117 lines
4.5 KiB
C#
Raw Normal View History

2024-05-20 02:52:44 +04:00
namespace ProjectKnapsack.forms
{
partial class ParametersForm
{
/// <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 Label capacityLabel;
private NumericUpDown capacityNumericUpDown;
private Label itemsLabel;
private DataGridView itemsDataGridView;
private Button okButton;
private Button cancelButton;
private void InitializeComponent()
{
capacityLabel = new Label();
capacityNumericUpDown = new NumericUpDown();
itemsLabel = new Label();
itemsDataGridView = new DataGridView();
okButton = new Button();
cancelButton = new Button();
SuspendLayout();
// Capacity Label
capacityLabel.AutoSize = true;
capacityLabel.Location = new System.Drawing.Point(12, 9);
capacityLabel.Name = "capacityLabel";
capacityLabel.Size = new System.Drawing.Size(80, 13);
capacityLabel.Text = "Knapsack Capacity:";
// Capacity NumericUpDown
capacityNumericUpDown.Location = new System.Drawing.Point(150, 7);
capacityNumericUpDown.Minimum = 1;
capacityNumericUpDown.Maximum = 1000;
capacityNumericUpDown.Name = "capacityNumericUpDown";
capacityNumericUpDown.Size = new System.Drawing.Size(120, 20);
// Items Label
itemsLabel.AutoSize = true;
itemsLabel.Location = new System.Drawing.Point(12, 40);
itemsLabel.Name = "itemsLabel";
itemsLabel.Size = new System.Drawing.Size(80, 13);
itemsLabel.Text = "Items:";
// Items DataGridView
itemsDataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
itemsDataGridView.Columns.Add("Name", "Name");
itemsDataGridView.Columns.Add("Weight", "Weight");
itemsDataGridView.Columns.Add("Value", "Value");
itemsDataGridView.Location = new System.Drawing.Point(15, 60);
itemsDataGridView.Name = "itemsDataGridView";
itemsDataGridView.Size = new System.Drawing.Size(360, 200);
itemsDataGridView.AllowUserToAddRows = true;
itemsDataGridView.AllowUserToDeleteRows = true;
// OK Button
okButton.Location = new System.Drawing.Point(219, 270);
okButton.Name = "okButton";
okButton.Size = new System.Drawing.Size(75, 23);
okButton.Text = "OK";
okButton.UseVisualStyleBackColor = true;
okButton.Click += new EventHandler(okButton_Click);
// Cancel Button
cancelButton.Location = new System.Drawing.Point(300, 270);
cancelButton.Name = "cancelButton";
cancelButton.Size = new System.Drawing.Size(75, 23);
cancelButton.Text = "Cancel";
cancelButton.UseVisualStyleBackColor = true;
cancelButton.Click += new EventHandler(cancelButton_Click);
// ParametersForm
ClientSize = new System.Drawing.Size(384, 311);
Controls.Add(capacityLabel);
Controls.Add(capacityNumericUpDown);
Controls.Add(itemsLabel);
Controls.Add(itemsDataGridView);
Controls.Add(okButton);
Controls.Add(cancelButton);
Name = "ParametersForm";
Text = "Input Parameters";
FormBorderStyle = FormBorderStyle.FixedDialog;
MaximizeBox = false;
MinimizeBox = false;
StartPosition = FormStartPosition.CenterParent;
((System.ComponentModel.ISupportInitialize)(capacityNumericUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(itemsDataGridView)).EndInit();
}
}
#endregion
}