247 lines
11 KiB
C#
247 lines
11 KiB
C#
using System.ComponentModel;
|
|
|
|
namespace Chapter6
|
|
{
|
|
partial class frmCalculate
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private 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.btnCalc = new System.Windows.Forms.Button();
|
|
this.lblOut = new System.Windows.Forms.Label();
|
|
this.txtDiscount = new System.Windows.Forms.TextBox();
|
|
this.txtPrice = new System.Windows.Forms.TextBox();
|
|
this.txtQuantity = new System.Windows.Forms.TextBox();
|
|
this.lblDisQuantity = new System.Windows.Forms.Label();
|
|
this.lblDisPrice = new System.Windows.Forms.Label();
|
|
this.lblDisDiscount = new System.Windows.Forms.Label();
|
|
this.miniToolStrip = new System.Windows.Forms.MenuStrip();
|
|
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.mnuMain = new System.Windows.Forms.MenuStrip();
|
|
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.mnuFileExit = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.mnuEdit = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.mnuEditCalculate = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.mnuEditSSummary = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.windowToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.miniToolStrip.SuspendLayout();
|
|
this.mnuMain.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// btnCalc
|
|
//
|
|
this.btnCalc.Location = new System.Drawing.Point(235, 189);
|
|
this.btnCalc.Name = "btnCalc";
|
|
this.btnCalc.Size = new System.Drawing.Size(125, 34);
|
|
this.btnCalc.TabIndex = 0;
|
|
this.btnCalc.Text = "Calculate";
|
|
this.btnCalc.UseVisualStyleBackColor = true;
|
|
this.btnCalc.Click += new System.EventHandler(this.btnCalc_Click);
|
|
//
|
|
// lblOut
|
|
//
|
|
this.lblOut.BackColor = System.Drawing.SystemColors.Info;
|
|
this.lblOut.Location = new System.Drawing.Point(234, 154);
|
|
this.lblOut.Name = "lblOut";
|
|
this.lblOut.Size = new System.Drawing.Size(125, 25);
|
|
this.lblOut.TabIndex = 1;
|
|
//
|
|
// txtDiscount
|
|
//
|
|
this.txtDiscount.Location = new System.Drawing.Point(235, 110);
|
|
this.txtDiscount.Name = "txtDiscount";
|
|
this.txtDiscount.Size = new System.Drawing.Size(125, 20);
|
|
this.txtDiscount.TabIndex = 2;
|
|
//
|
|
// txtPrice
|
|
//
|
|
this.txtPrice.Location = new System.Drawing.Point(234, 84);
|
|
this.txtPrice.Name = "txtPrice";
|
|
this.txtPrice.Size = new System.Drawing.Size(125, 20);
|
|
this.txtPrice.TabIndex = 3;
|
|
//
|
|
// txtQuantity
|
|
//
|
|
this.txtQuantity.Location = new System.Drawing.Point(235, 58);
|
|
this.txtQuantity.Name = "txtQuantity";
|
|
this.txtQuantity.Size = new System.Drawing.Size(125, 20);
|
|
this.txtQuantity.TabIndex = 4;
|
|
//
|
|
// lblDisQuantity
|
|
//
|
|
this.lblDisQuantity.Location = new System.Drawing.Point(81, 61);
|
|
this.lblDisQuantity.Name = "lblDisQuantity";
|
|
this.lblDisQuantity.Size = new System.Drawing.Size(148, 19);
|
|
this.lblDisQuantity.TabIndex = 5;
|
|
this.lblDisQuantity.Text = "Quantity:";
|
|
this.lblDisQuantity.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
//
|
|
// lblDisPrice
|
|
//
|
|
this.lblDisPrice.Location = new System.Drawing.Point(81, 84);
|
|
this.lblDisPrice.Name = "lblDisPrice";
|
|
this.lblDisPrice.Size = new System.Drawing.Size(148, 19);
|
|
this.lblDisPrice.TabIndex = 6;
|
|
this.lblDisPrice.Text = "Price:";
|
|
this.lblDisPrice.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
//
|
|
// lblDisDiscount
|
|
//
|
|
this.lblDisDiscount.Location = new System.Drawing.Point(81, 110);
|
|
this.lblDisDiscount.Name = "lblDisDiscount";
|
|
this.lblDisDiscount.Size = new System.Drawing.Size(148, 19);
|
|
this.lblDisDiscount.TabIndex = 7;
|
|
this.lblDisDiscount.Text = "Discount (%):";
|
|
this.lblDisDiscount.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
//
|
|
// miniToolStrip
|
|
//
|
|
this.miniToolStrip.AutoSize = false;
|
|
this.miniToolStrip.Dock = System.Windows.Forms.DockStyle.None;
|
|
this.miniToolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripMenuItem1 });
|
|
this.miniToolStrip.Location = new System.Drawing.Point(131, 2);
|
|
this.miniToolStrip.Name = "miniToolStrip";
|
|
this.miniToolStrip.Size = new System.Drawing.Size(800, 24);
|
|
this.miniToolStrip.TabIndex = 8;
|
|
this.miniToolStrip.Visible = false;
|
|
//
|
|
// toolStripMenuItem1
|
|
//
|
|
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
|
|
this.toolStripMenuItem1.Size = new System.Drawing.Size(125, 20);
|
|
this.toolStripMenuItem1.Text = "toolStripMenuItem1";
|
|
this.toolStripMenuItem1.Click += new System.EventHandler(this.toolStripMenuItem1_Click);
|
|
//
|
|
// mnuMain
|
|
//
|
|
this.mnuMain.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.fileToolStripMenuItem, this.mnuEdit, this.windowToolStripMenuItem, this.helpToolStripMenuItem });
|
|
this.mnuMain.Location = new System.Drawing.Point(0, 0);
|
|
this.mnuMain.Name = "mnuMain";
|
|
this.mnuMain.Size = new System.Drawing.Size(800, 24);
|
|
this.mnuMain.TabIndex = 9;
|
|
this.mnuMain.Text = "menuStrip1";
|
|
//
|
|
// fileToolStripMenuItem
|
|
//
|
|
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mnuFileExit });
|
|
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
|
|
this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
|
|
this.fileToolStripMenuItem.Text = "File";
|
|
//
|
|
// mnuFileExit
|
|
//
|
|
this.mnuFileExit.Name = "mnuFileExit";
|
|
this.mnuFileExit.Size = new System.Drawing.Size(93, 22);
|
|
this.mnuFileExit.Text = "Exit";
|
|
//
|
|
// mnuEdit
|
|
//
|
|
this.mnuEdit.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mnuEditCalculate, this.mnuEditSSummary });
|
|
this.mnuEdit.Name = "mnuEdit";
|
|
this.mnuEdit.Size = new System.Drawing.Size(39, 20);
|
|
this.mnuEdit.Text = "Edit";
|
|
//
|
|
// mnuEditCalculate
|
|
//
|
|
this.mnuEditCalculate.Name = "mnuEditCalculate";
|
|
this.mnuEditCalculate.Size = new System.Drawing.Size(157, 22);
|
|
this.mnuEditCalculate.Text = "Calculate";
|
|
this.mnuEditCalculate.Click += new System.EventHandler(this.mnuEditCalculate_Click);
|
|
//
|
|
// mnuEditSSummary
|
|
//
|
|
this.mnuEditSSummary.Name = "mnuEditSSummary";
|
|
this.mnuEditSSummary.Size = new System.Drawing.Size(157, 22);
|
|
this.mnuEditSSummary.Text = "Show Summary";
|
|
this.mnuEditSSummary.Click += new System.EventHandler(this.mnuEditSSummary_Click);
|
|
//
|
|
// windowToolStripMenuItem
|
|
//
|
|
this.windowToolStripMenuItem.Name = "windowToolStripMenuItem";
|
|
this.windowToolStripMenuItem.Size = new System.Drawing.Size(63, 20);
|
|
this.windowToolStripMenuItem.Text = "Window";
|
|
//
|
|
// helpToolStripMenuItem
|
|
//
|
|
this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
|
|
this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20);
|
|
this.helpToolStripMenuItem.Text = "Help";
|
|
//
|
|
// frmCalculate
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.BackColor = System.Drawing.SystemColors.Control;
|
|
this.ClientSize = new System.Drawing.Size(800, 450);
|
|
this.Controls.Add(this.lblDisDiscount);
|
|
this.Controls.Add(this.lblDisPrice);
|
|
this.Controls.Add(this.lblDisQuantity);
|
|
this.Controls.Add(this.txtQuantity);
|
|
this.Controls.Add(this.txtPrice);
|
|
this.Controls.Add(this.txtDiscount);
|
|
this.Controls.Add(this.lblOut);
|
|
this.Controls.Add(this.btnCalc);
|
|
this.Controls.Add(this.miniToolStrip);
|
|
this.Controls.Add(this.mnuMain);
|
|
this.Location = new System.Drawing.Point(15, 15);
|
|
this.MainMenuStrip = this.mnuMain;
|
|
this.Name = "frmCalculate";
|
|
this.miniToolStrip.ResumeLayout(false);
|
|
this.miniToolStrip.PerformLayout();
|
|
this.mnuMain.ResumeLayout(false);
|
|
this.mnuMain.PerformLayout();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
}
|
|
|
|
private System.Windows.Forms.MenuStrip miniToolStrip;
|
|
private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem mnuEdit;
|
|
private System.Windows.Forms.ToolStripMenuItem mnuEditCalculate;
|
|
private System.Windows.Forms.ToolStripMenuItem mnuEditSSummary;
|
|
private System.Windows.Forms.ToolStripMenuItem windowToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem mnuFileExit;
|
|
|
|
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1;
|
|
|
|
private System.Windows.Forms.MenuStrip mnuMain;
|
|
|
|
private System.Windows.Forms.TextBox txtDiscount;
|
|
private System.Windows.Forms.TextBox txtPrice;
|
|
private System.Windows.Forms.TextBox txtQuantity;
|
|
private System.Windows.Forms.Label lblDisQuantity;
|
|
private System.Windows.Forms.Label lblDisPrice;
|
|
private System.Windows.Forms.Label lblDisDiscount;
|
|
|
|
private System.Windows.Forms.Button btnCalc;
|
|
private System.Windows.Forms.Label lblOut;
|
|
|
|
#endregion
|
|
}
|
|
} |