134 lines
4.7 KiB
C#
134 lines
4.7 KiB
C#
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
|
|
|
|
namespace ProjectKnapsack.forms
|
|
{
|
|
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 System.Windows.Forms.Button startButton;
|
|
private MenuStrip menuStrip;
|
|
private ToolStripMenuItem fileMenuItem;
|
|
private ToolStripMenuItem saveMenuItem;
|
|
private ToolStripMenuItem loadMenuItem;
|
|
private ToolStripMenuItem helpMenuItem;
|
|
private ToolStripMenuItem aboutMenuItem;
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
startButton = new System.Windows.Forms.Button();
|
|
menuStrip = new MenuStrip();
|
|
fileMenuItem = new ToolStripMenuItem();
|
|
saveMenuItem = new ToolStripMenuItem();
|
|
loadMenuItem = new ToolStripMenuItem();
|
|
helpMenuItem = new ToolStripMenuItem();
|
|
aboutMenuItem = new ToolStripMenuItem();
|
|
pictureBox1 = new PictureBox();
|
|
menuStrip.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)pictureBox1).BeginInit();
|
|
SuspendLayout();
|
|
//
|
|
// startButton
|
|
//
|
|
startButton.Location = new Point(50, 500);
|
|
startButton.Name = "startButton";
|
|
startButton.Size = new Size(100, 30);
|
|
startButton.TabIndex = 0;
|
|
startButton.Text = "Start";
|
|
startButton.Click += startButton_Click;
|
|
//
|
|
// menuStrip
|
|
//
|
|
menuStrip.Items.AddRange(new ToolStripItem[] { fileMenuItem, helpMenuItem });
|
|
menuStrip.Location = new Point(0, 0);
|
|
menuStrip.Name = "menuStrip";
|
|
menuStrip.Size = new Size(800, 24);
|
|
menuStrip.TabIndex = 2;
|
|
//
|
|
// fileMenuItem
|
|
//
|
|
fileMenuItem.DropDownItems.AddRange(new ToolStripItem[] { saveMenuItem, loadMenuItem });
|
|
fileMenuItem.Name = "fileMenuItem";
|
|
fileMenuItem.Size = new Size(37, 20);
|
|
fileMenuItem.Text = "File";
|
|
//
|
|
// saveMenuItem
|
|
//
|
|
saveMenuItem.Name = "saveMenuItem";
|
|
saveMenuItem.Size = new Size(100, 22);
|
|
saveMenuItem.Text = "Save";
|
|
saveMenuItem.Click += saveMenuItem_Click;
|
|
//
|
|
// loadMenuItem
|
|
//
|
|
loadMenuItem.Name = "loadMenuItem";
|
|
loadMenuItem.Size = new Size(100, 22);
|
|
loadMenuItem.Text = "Load";
|
|
loadMenuItem.Click += loadMenuItem_Click;
|
|
//
|
|
// helpMenuItem
|
|
//
|
|
helpMenuItem.DropDownItems.AddRange(new ToolStripItem[] { aboutMenuItem });
|
|
helpMenuItem.Name = "helpMenuItem";
|
|
helpMenuItem.Size = new Size(44, 20);
|
|
helpMenuItem.Text = "Help";
|
|
//
|
|
// aboutMenuItem
|
|
//
|
|
aboutMenuItem.Name = "aboutMenuItem";
|
|
aboutMenuItem.Size = new Size(107, 22);
|
|
aboutMenuItem.Text = "About";
|
|
aboutMenuItem.Click += aboutMenuItem_Click;
|
|
//
|
|
// pictureBox1
|
|
//
|
|
pictureBox1.Location = new Point(0, 27);
|
|
pictureBox1.Name = "pictureBox1";
|
|
pictureBox1.Size = new Size(800, 467);
|
|
pictureBox1.TabIndex = 3;
|
|
pictureBox1.TabStop = false;
|
|
//
|
|
// MainForm
|
|
//
|
|
ClientSize = new Size(800, 600);
|
|
Controls.Add(pictureBox1);
|
|
Controls.Add(startButton);
|
|
Controls.Add(menuStrip);
|
|
MainMenuStrip = menuStrip;
|
|
Name = "MainForm";
|
|
Text = "Knapsack Problem Visualizer";
|
|
menuStrip.ResumeLayout(false);
|
|
menuStrip.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize)pictureBox1).EndInit();
|
|
ResumeLayout(false);
|
|
PerformLayout();
|
|
}
|
|
|
|
#endregion
|
|
|
|
private PictureBox pictureBox1;
|
|
}
|
|
} |