318 строки
15 KiB
C#
318 строки
15 KiB
C#
using System.Drawing;
|
|
|
|
namespace SimpleCalculator
|
|
{
|
|
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()
|
|
{
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
|
|
this.btn1 = new System.Windows.Forms.Button();
|
|
this.btn2 = new System.Windows.Forms.Button();
|
|
this.btn3 = new System.Windows.Forms.Button();
|
|
this.btn4 = new System.Windows.Forms.Button();
|
|
this.btn5 = new System.Windows.Forms.Button();
|
|
this.btn6 = new System.Windows.Forms.Button();
|
|
this.btn7 = new System.Windows.Forms.Button();
|
|
this.btn8 = new System.Windows.Forms.Button();
|
|
this.btn9 = new System.Windows.Forms.Button();
|
|
this.btnPlus = new System.Windows.Forms.Button();
|
|
this.btnMinus = new System.Windows.Forms.Button();
|
|
this.btnMultiply = new System.Windows.Forms.Button();
|
|
this.btnDivide = new System.Windows.Forms.Button();
|
|
this.btnEquals = new System.Windows.Forms.Button();
|
|
this.btnC = new System.Windows.Forms.Button();
|
|
this.btn0 = new System.Windows.Forms.Button();
|
|
this.btnBkpSpace = new System.Windows.Forms.Button();
|
|
this.panel1 = new System.Windows.Forms.Panel();
|
|
this.btnPoint = new System.Windows.Forms.Button();
|
|
this.btnModules = new System.Windows.Forms.Button();
|
|
this.panel1.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// btn1
|
|
//
|
|
this.btn1.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btn1.Location = new System.Drawing.Point(137, 236);
|
|
this.btn1.Name = "btn1";
|
|
this.btn1.Size = new System.Drawing.Size(60, 56);
|
|
this.btn1.TabIndex = 1;
|
|
this.btn1.Text = "1";
|
|
this.btn1.UseVisualStyleBackColor = true;
|
|
//
|
|
// btn2
|
|
//
|
|
this.btn2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btn2.Location = new System.Drawing.Point(71, 236);
|
|
this.btn2.Name = "btn2";
|
|
this.btn2.Size = new System.Drawing.Size(60, 56);
|
|
this.btn2.TabIndex = 2;
|
|
this.btn2.Text = "2";
|
|
this.btn2.UseVisualStyleBackColor = true;
|
|
//
|
|
// btn3
|
|
//
|
|
this.btn3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btn3.Location = new System.Drawing.Point(3, 236);
|
|
this.btn3.Name = "btn3";
|
|
this.btn3.Size = new System.Drawing.Size(62, 56);
|
|
this.btn3.TabIndex = 3;
|
|
this.btn3.Text = "3";
|
|
this.btn3.UseVisualStyleBackColor = true;
|
|
//
|
|
// btn4
|
|
//
|
|
this.btn4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btn4.Location = new System.Drawing.Point(3, 174);
|
|
this.btn4.Name = "btn4";
|
|
this.btn4.Size = new System.Drawing.Size(62, 56);
|
|
this.btn4.TabIndex = 4;
|
|
this.btn4.Text = "4";
|
|
this.btn4.UseVisualStyleBackColor = true;
|
|
//
|
|
// btn5
|
|
//
|
|
this.btn5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btn5.Location = new System.Drawing.Point(71, 174);
|
|
this.btn5.Name = "btn5";
|
|
this.btn5.Size = new System.Drawing.Size(60, 56);
|
|
this.btn5.TabIndex = 5;
|
|
this.btn5.Text = "5";
|
|
this.btn5.UseVisualStyleBackColor = true;
|
|
//
|
|
// btn6
|
|
//
|
|
this.btn6.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btn6.Location = new System.Drawing.Point(137, 174);
|
|
this.btn6.Name = "btn6";
|
|
this.btn6.Size = new System.Drawing.Size(60, 56);
|
|
this.btn6.TabIndex = 6;
|
|
this.btn6.Text = "6";
|
|
this.btn6.UseVisualStyleBackColor = true;
|
|
//
|
|
// btn7
|
|
//
|
|
this.btn7.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btn7.Location = new System.Drawing.Point(137, 112);
|
|
this.btn7.Name = "btn7";
|
|
this.btn7.Size = new System.Drawing.Size(60, 56);
|
|
this.btn7.TabIndex = 7;
|
|
this.btn7.Text = "7";
|
|
this.btn7.UseVisualStyleBackColor = true;
|
|
//
|
|
// btn8
|
|
//
|
|
this.btn8.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btn8.Location = new System.Drawing.Point(71, 112);
|
|
this.btn8.Name = "btn8";
|
|
this.btn8.Size = new System.Drawing.Size(60, 56);
|
|
this.btn8.TabIndex = 8;
|
|
this.btn8.Text = "8";
|
|
this.btn8.UseVisualStyleBackColor = true;
|
|
//
|
|
// btn9
|
|
//
|
|
this.btn9.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btn9.Location = new System.Drawing.Point(3, 112);
|
|
this.btn9.Name = "btn9";
|
|
this.btn9.Size = new System.Drawing.Size(62, 56);
|
|
this.btn9.TabIndex = 9;
|
|
this.btn9.Text = "9";
|
|
this.btn9.UseVisualStyleBackColor = true;
|
|
//
|
|
// btnPlus
|
|
//
|
|
this.btnPlus.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnPlus.Location = new System.Drawing.Point(203, 50);
|
|
this.btnPlus.Name = "btnPlus";
|
|
this.btnPlus.Size = new System.Drawing.Size(53, 56);
|
|
this.btnPlus.TabIndex = 10;
|
|
this.btnPlus.Text = "+";
|
|
this.btnPlus.UseVisualStyleBackColor = true;
|
|
//
|
|
// btnMinus
|
|
//
|
|
this.btnMinus.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnMinus.Location = new System.Drawing.Point(203, 112);
|
|
this.btnMinus.Name = "btnMinus";
|
|
this.btnMinus.Size = new System.Drawing.Size(53, 56);
|
|
this.btnMinus.TabIndex = 11;
|
|
this.btnMinus.Text = "-";
|
|
this.btnMinus.UseVisualStyleBackColor = true;
|
|
//
|
|
// btnMultiply
|
|
//
|
|
this.btnMultiply.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnMultiply.Location = new System.Drawing.Point(203, 174);
|
|
this.btnMultiply.Name = "btnMultiply";
|
|
this.btnMultiply.Size = new System.Drawing.Size(53, 56);
|
|
this.btnMultiply.TabIndex = 12;
|
|
this.btnMultiply.Text = "*";
|
|
this.btnMultiply.UseVisualStyleBackColor = true;
|
|
//
|
|
// btnDivide
|
|
//
|
|
this.btnDivide.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnDivide.Location = new System.Drawing.Point(203, 236);
|
|
this.btnDivide.Name = "btnDivide";
|
|
this.btnDivide.Size = new System.Drawing.Size(53, 56);
|
|
this.btnDivide.TabIndex = 13;
|
|
this.btnDivide.Text = "/";
|
|
this.btnDivide.UseVisualStyleBackColor = true;
|
|
//
|
|
// btnEquals
|
|
//
|
|
this.btnEquals.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnEquals.Location = new System.Drawing.Point(137, 298);
|
|
this.btnEquals.Name = "btnEquals";
|
|
this.btnEquals.Size = new System.Drawing.Size(60, 56);
|
|
this.btnEquals.TabIndex = 14;
|
|
this.btnEquals.Text = "=";
|
|
this.btnEquals.UseVisualStyleBackColor = true;
|
|
//
|
|
// btnC
|
|
//
|
|
this.btnC.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnC.Location = new System.Drawing.Point(137, 50);
|
|
this.btnC.Name = "btnC";
|
|
this.btnC.Size = new System.Drawing.Size(60, 56);
|
|
this.btnC.TabIndex = 15;
|
|
this.btnC.Text = "C";
|
|
this.btnC.UseVisualStyleBackColor = true;
|
|
//
|
|
// btn0
|
|
//
|
|
this.btn0.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btn0.Location = new System.Drawing.Point(71, 298);
|
|
this.btn0.Name = "btn0";
|
|
this.btn0.Size = new System.Drawing.Size(60, 56);
|
|
this.btn0.TabIndex = 16;
|
|
this.btn0.Text = "0";
|
|
this.btn0.UseVisualStyleBackColor = true;
|
|
//
|
|
// btnBkpSpace
|
|
//
|
|
this.btnBkpSpace.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnBkpSpace.Location = new System.Drawing.Point(3, 50);
|
|
this.btnBkpSpace.Name = "btnBkpSpace";
|
|
this.btnBkpSpace.Size = new System.Drawing.Size(128, 56);
|
|
this.btnBkpSpace.TabIndex = 18;
|
|
this.btnBkpSpace.Text = "Backspace";
|
|
this.btnBkpSpace.UseVisualStyleBackColor = true;
|
|
//
|
|
// panel1
|
|
//
|
|
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
|
this.panel1.BackColor = Color.FloralWhite;
|
|
this.panel1.Location = new System.Drawing.Point(3, 7);
|
|
this.panel1.Margin = new System.Windows.Forms.Padding(3, 3, 3, 6);
|
|
this.panel1.Name = "panel1";
|
|
this.panel1.Size = new System.Drawing.Size(253, 38);
|
|
this.panel1.TabIndex = 20;
|
|
//
|
|
// btnPoint
|
|
//
|
|
this.btnPoint.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnPoint.Location = new System.Drawing.Point(7, 298);
|
|
this.btnPoint.Name = "btnPoint";
|
|
this.btnPoint.Size = new System.Drawing.Size(60, 56);
|
|
this.btnPoint.TabIndex = 21;
|
|
this.btnPoint.Text = ".";
|
|
this.btnPoint.UseVisualStyleBackColor = true;
|
|
//
|
|
// btnModules
|
|
//
|
|
this.btnModules.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnModules.Location = new System.Drawing.Point(203, 298);
|
|
this.btnModules.Name = "btnModules";
|
|
this.btnModules.Size = new System.Drawing.Size(53, 56);
|
|
this.btnModules.TabIndex = 22;
|
|
this.btnModules.Text = "%";
|
|
this.btnModules.UseVisualStyleBackColor = true;
|
|
//
|
|
// Form1
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(260, 384);
|
|
this.Controls.Add(this.btnModules);
|
|
this.Controls.Add(this.btnPoint);
|
|
this.Controls.Add(this.panel1);
|
|
this.Controls.Add(this.btnBkpSpace);
|
|
this.Controls.Add(this.btn0);
|
|
this.Controls.Add(this.btnC);
|
|
this.Controls.Add(this.btnEquals);
|
|
this.Controls.Add(this.btnDivide);
|
|
this.Controls.Add(this.btnMultiply);
|
|
this.Controls.Add(this.btnMinus);
|
|
this.Controls.Add(this.btnPlus);
|
|
this.Controls.Add(this.btn9);
|
|
this.Controls.Add(this.btn8);
|
|
this.Controls.Add(this.btn7);
|
|
this.Controls.Add(this.btn6);
|
|
this.Controls.Add(this.btn5);
|
|
this.Controls.Add(this.btn4);
|
|
this.Controls.Add(this.btn3);
|
|
this.Controls.Add(this.btn2);
|
|
this.Controls.Add(this.btn1);
|
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|
this.MaximizeBox = false;
|
|
this.MaximumSize = new System.Drawing.Size(276, 423);
|
|
this.MinimumSize = new System.Drawing.Size(276, 423);
|
|
this.Name = "Form1";
|
|
this.Text = "Calculator";
|
|
this.panel1.ResumeLayout(false);
|
|
this.panel1.PerformLayout();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.Button btn1;
|
|
private System.Windows.Forms.Button btn2;
|
|
private System.Windows.Forms.Button btn3;
|
|
private System.Windows.Forms.Button btn4;
|
|
private System.Windows.Forms.Button btn5;
|
|
private System.Windows.Forms.Button btn6;
|
|
private System.Windows.Forms.Button btn7;
|
|
private System.Windows.Forms.Button btn8;
|
|
private System.Windows.Forms.Button btn9;
|
|
private System.Windows.Forms.Button btnPlus;
|
|
private System.Windows.Forms.Button btnMinus;
|
|
private System.Windows.Forms.Button btnMultiply;
|
|
private System.Windows.Forms.Button btnDivide;
|
|
private System.Windows.Forms.Button btnEquals;
|
|
private System.Windows.Forms.Button btnC;
|
|
private System.Windows.Forms.Button btn0;
|
|
private System.Windows.Forms.Button btnBkpSpace;
|
|
private System.Windows.Forms.Panel panel1;
|
|
private System.Windows.Forms.Button btnPoint;
|
|
private System.Windows.Forms.Button btnModules;
|
|
}
|
|
} |