321 lines
16 KiB
C#
321 lines
16 KiB
C#
|
|
namespace WindowsFormsApp1
|
|
{
|
|
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()
|
|
{
|
|
this.textBox1 = new System.Windows.Forms.TextBox();
|
|
this.button1 = new System.Windows.Forms.Button();
|
|
this.button2 = new System.Windows.Forms.Button();
|
|
this.button3 = new System.Windows.Forms.Button();
|
|
this.button4 = new System.Windows.Forms.Button();
|
|
this.button5 = new System.Windows.Forms.Button();
|
|
this.button6 = new System.Windows.Forms.Button();
|
|
this.button7 = new System.Windows.Forms.Button();
|
|
this.button8 = new System.Windows.Forms.Button();
|
|
this.button9 = new System.Windows.Forms.Button();
|
|
this.division = new System.Windows.Forms.Button();
|
|
this.multiplication = new System.Windows.Forms.Button();
|
|
this.substraction = new System.Windows.Forms.Button();
|
|
this.addition = new System.Windows.Forms.Button();
|
|
this.enter = new System.Windows.Forms.Button();
|
|
this.button_0 = new System.Windows.Forms.Button();
|
|
this.point = new System.Windows.Forms.Button();
|
|
this.clear = new System.Windows.Forms.Button();
|
|
this.SuspendLayout();
|
|
//
|
|
// textBox1
|
|
//
|
|
this.textBox1.BackColor = System.Drawing.Color.Plum;
|
|
this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
|
this.textBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F);
|
|
this.textBox1.Location = new System.Drawing.Point(70, 53);
|
|
this.textBox1.Name = "textBox1";
|
|
this.textBox1.Size = new System.Drawing.Size(262, 25);
|
|
this.textBox1.TabIndex = 0;
|
|
this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
|
|
//
|
|
// button1
|
|
//
|
|
this.button1.BackColor = System.Drawing.Color.HotPink;
|
|
this.button1.Font = new System.Drawing.Font("Microsoft Tai Le", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.button1.Location = new System.Drawing.Point(46, 367);
|
|
this.button1.Name = "button1";
|
|
this.button1.Size = new System.Drawing.Size(50, 50);
|
|
this.button1.TabIndex = 1;
|
|
this.button1.Text = "1";
|
|
this.button1.UseVisualStyleBackColor = false;
|
|
this.button1.Click += new System.EventHandler(this.button1_Click);
|
|
//
|
|
// button2
|
|
//
|
|
this.button2.BackColor = System.Drawing.Color.HotPink;
|
|
this.button2.Font = new System.Drawing.Font("Microsoft Tai Le", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.button2.Location = new System.Drawing.Point(139, 367);
|
|
this.button2.Name = "button2";
|
|
this.button2.Size = new System.Drawing.Size(50, 50);
|
|
this.button2.TabIndex = 2;
|
|
this.button2.Text = "2";
|
|
this.button2.UseVisualStyleBackColor = false;
|
|
this.button2.Click += new System.EventHandler(this.button2_Click);
|
|
//
|
|
// button3
|
|
//
|
|
this.button3.BackColor = System.Drawing.Color.HotPink;
|
|
this.button3.Font = new System.Drawing.Font("Microsoft Tai Le", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.button3.Location = new System.Drawing.Point(231, 367);
|
|
this.button3.Name = "button3";
|
|
this.button3.Size = new System.Drawing.Size(50, 50);
|
|
this.button3.TabIndex = 3;
|
|
this.button3.Text = "3";
|
|
this.button3.UseVisualStyleBackColor = false;
|
|
this.button3.Click += new System.EventHandler(this.button3_Click);
|
|
//
|
|
// button4
|
|
//
|
|
this.button4.BackColor = System.Drawing.Color.HotPink;
|
|
this.button4.Font = new System.Drawing.Font("Microsoft Tai Le", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.button4.Location = new System.Drawing.Point(46, 289);
|
|
this.button4.Name = "button4";
|
|
this.button4.Size = new System.Drawing.Size(50, 50);
|
|
this.button4.TabIndex = 4;
|
|
this.button4.Text = "4";
|
|
this.button4.UseVisualStyleBackColor = false;
|
|
this.button4.Click += new System.EventHandler(this.button4_Click);
|
|
//
|
|
// button5
|
|
//
|
|
this.button5.BackColor = System.Drawing.Color.HotPink;
|
|
this.button5.Font = new System.Drawing.Font("Microsoft Tai Le", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.button5.Location = new System.Drawing.Point(139, 289);
|
|
this.button5.Name = "button5";
|
|
this.button5.Size = new System.Drawing.Size(50, 50);
|
|
this.button5.TabIndex = 5;
|
|
this.button5.Text = "5";
|
|
this.button5.UseVisualStyleBackColor = false;
|
|
this.button5.Click += new System.EventHandler(this.button5_Click);
|
|
//
|
|
// button6
|
|
//
|
|
this.button6.BackColor = System.Drawing.Color.HotPink;
|
|
this.button6.Font = new System.Drawing.Font("Microsoft Tai Le", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.button6.Location = new System.Drawing.Point(231, 289);
|
|
this.button6.Name = "button6";
|
|
this.button6.Size = new System.Drawing.Size(50, 50);
|
|
this.button6.TabIndex = 6;
|
|
this.button6.Text = "6";
|
|
this.button6.UseVisualStyleBackColor = false;
|
|
this.button6.Click += new System.EventHandler(this.button6_Click);
|
|
//
|
|
// button7
|
|
//
|
|
this.button7.BackColor = System.Drawing.Color.HotPink;
|
|
this.button7.Font = new System.Drawing.Font("Microsoft Tai Le", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.button7.Location = new System.Drawing.Point(46, 206);
|
|
this.button7.Name = "button7";
|
|
this.button7.Size = new System.Drawing.Size(50, 50);
|
|
this.button7.TabIndex = 7;
|
|
this.button7.Text = "7";
|
|
this.button7.UseVisualStyleBackColor = false;
|
|
this.button7.Click += new System.EventHandler(this.button7_Click);
|
|
//
|
|
// button8
|
|
//
|
|
this.button8.BackColor = System.Drawing.Color.HotPink;
|
|
this.button8.Font = new System.Drawing.Font("Microsoft Tai Le", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.button8.Location = new System.Drawing.Point(139, 206);
|
|
this.button8.Name = "button8";
|
|
this.button8.Size = new System.Drawing.Size(50, 50);
|
|
this.button8.TabIndex = 8;
|
|
this.button8.Text = "8";
|
|
this.button8.UseVisualStyleBackColor = false;
|
|
this.button8.Click += new System.EventHandler(this.button8_Click);
|
|
//
|
|
// button9
|
|
//
|
|
this.button9.BackColor = System.Drawing.Color.HotPink;
|
|
this.button9.Font = new System.Drawing.Font("Microsoft Tai Le", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.button9.Location = new System.Drawing.Point(231, 206);
|
|
this.button9.Name = "button9";
|
|
this.button9.Size = new System.Drawing.Size(50, 50);
|
|
this.button9.TabIndex = 9;
|
|
this.button9.Text = "9";
|
|
this.button9.UseVisualStyleBackColor = false;
|
|
this.button9.Click += new System.EventHandler(this.button9_Click);
|
|
//
|
|
// division
|
|
//
|
|
this.division.BackColor = System.Drawing.Color.HotPink;
|
|
this.division.Font = new System.Drawing.Font("Microsoft Tai Le", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.division.Location = new System.Drawing.Point(46, 124);
|
|
this.division.Name = "division";
|
|
this.division.Size = new System.Drawing.Size(50, 50);
|
|
this.division.TabIndex = 10;
|
|
this.division.Text = "/";
|
|
this.division.UseVisualStyleBackColor = false;
|
|
this.division.Click += new System.EventHandler(this.division_Click_1);
|
|
//
|
|
// multiplication
|
|
//
|
|
this.multiplication.BackColor = System.Drawing.Color.HotPink;
|
|
this.multiplication.Font = new System.Drawing.Font("Microsoft Tai Le", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.multiplication.Location = new System.Drawing.Point(139, 124);
|
|
this.multiplication.Name = "multiplication";
|
|
this.multiplication.Size = new System.Drawing.Size(50, 50);
|
|
this.multiplication.TabIndex = 11;
|
|
this.multiplication.Text = "*";
|
|
this.multiplication.UseVisualStyleBackColor = false;
|
|
this.multiplication.Click += new System.EventHandler(this.multiplication_Click);
|
|
//
|
|
// substraction
|
|
//
|
|
this.substraction.BackColor = System.Drawing.Color.HotPink;
|
|
this.substraction.Font = new System.Drawing.Font("Microsoft Tai Le", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.substraction.Location = new System.Drawing.Point(231, 124);
|
|
this.substraction.Name = "substraction";
|
|
this.substraction.Size = new System.Drawing.Size(50, 50);
|
|
this.substraction.TabIndex = 12;
|
|
this.substraction.Text = "-";
|
|
this.substraction.UseVisualStyleBackColor = false;
|
|
this.substraction.Click += new System.EventHandler(this.substraction_Click);
|
|
//
|
|
// addition
|
|
//
|
|
this.addition.BackColor = System.Drawing.Color.HotPink;
|
|
this.addition.Font = new System.Drawing.Font("Microsoft Tai Le", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.addition.Location = new System.Drawing.Point(305, 206);
|
|
this.addition.Name = "addition";
|
|
this.addition.Size = new System.Drawing.Size(50, 132);
|
|
this.addition.TabIndex = 13;
|
|
this.addition.Text = "+";
|
|
this.addition.UseVisualStyleBackColor = false;
|
|
this.addition.Click += new System.EventHandler(this.addition_Click);
|
|
//
|
|
// enter
|
|
//
|
|
this.enter.BackColor = System.Drawing.Color.HotPink;
|
|
this.enter.Font = new System.Drawing.Font("Microsoft Tai Le", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.enter.Location = new System.Drawing.Point(305, 367);
|
|
this.enter.Name = "enter";
|
|
this.enter.Size = new System.Drawing.Size(50, 128);
|
|
this.enter.TabIndex = 14;
|
|
this.enter.Text = "=";
|
|
this.enter.UseVisualStyleBackColor = false;
|
|
this.enter.Click += new System.EventHandler(this.enter_Click);
|
|
//
|
|
// button_0
|
|
//
|
|
this.button_0.BackColor = System.Drawing.Color.HotPink;
|
|
this.button_0.Font = new System.Drawing.Font("Microsoft Tai Le", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.button_0.Location = new System.Drawing.Point(46, 445);
|
|
this.button_0.Name = "button_0";
|
|
this.button_0.Size = new System.Drawing.Size(143, 50);
|
|
this.button_0.TabIndex = 15;
|
|
this.button_0.Text = "0";
|
|
this.button_0.UseVisualStyleBackColor = false;
|
|
this.button_0.Click += new System.EventHandler(this.button_0_Click);
|
|
//
|
|
// point
|
|
//
|
|
this.point.BackColor = System.Drawing.Color.HotPink;
|
|
this.point.Font = new System.Drawing.Font("Microsoft Tai Le", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.point.Location = new System.Drawing.Point(231, 445);
|
|
this.point.Name = "point";
|
|
this.point.Size = new System.Drawing.Size(50, 50);
|
|
this.point.TabIndex = 16;
|
|
this.point.Text = ",";
|
|
this.point.UseVisualStyleBackColor = false;
|
|
this.point.Click += new System.EventHandler(this.point_Click);
|
|
//
|
|
// clear
|
|
//
|
|
this.clear.BackColor = System.Drawing.Color.HotPink;
|
|
this.clear.Font = new System.Drawing.Font("Microsoft Tai Le", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.clear.Location = new System.Drawing.Point(305, 124);
|
|
this.clear.Name = "clear";
|
|
this.clear.Size = new System.Drawing.Size(50, 50);
|
|
this.clear.TabIndex = 17;
|
|
this.clear.Text = "CE";
|
|
this.clear.UseVisualStyleBackColor = false;
|
|
this.clear.Click += new System.EventHandler(this.clear_Click);
|
|
//
|
|
// Form1
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.BackColor = System.Drawing.Color.DarkCyan;
|
|
this.ClientSize = new System.Drawing.Size(392, 520);
|
|
this.Controls.Add(this.clear);
|
|
this.Controls.Add(this.point);
|
|
this.Controls.Add(this.button_0);
|
|
this.Controls.Add(this.enter);
|
|
this.Controls.Add(this.addition);
|
|
this.Controls.Add(this.substraction);
|
|
this.Controls.Add(this.multiplication);
|
|
this.Controls.Add(this.division);
|
|
this.Controls.Add(this.button9);
|
|
this.Controls.Add(this.button8);
|
|
this.Controls.Add(this.button7);
|
|
this.Controls.Add(this.button6);
|
|
this.Controls.Add(this.button5);
|
|
this.Controls.Add(this.button4);
|
|
this.Controls.Add(this.button3);
|
|
this.Controls.Add(this.button2);
|
|
this.Controls.Add(this.button1);
|
|
this.Controls.Add(this.textBox1);
|
|
this.Name = "Form1";
|
|
this.Text = "Calculator";
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.TextBox textBox1;
|
|
private System.Windows.Forms.Button button1;
|
|
private System.Windows.Forms.Button button2;
|
|
private System.Windows.Forms.Button button3;
|
|
private System.Windows.Forms.Button button4;
|
|
private System.Windows.Forms.Button button5;
|
|
private System.Windows.Forms.Button button6;
|
|
private System.Windows.Forms.Button button7;
|
|
private System.Windows.Forms.Button button8;
|
|
private System.Windows.Forms.Button button9;
|
|
private System.Windows.Forms.Button division;
|
|
private System.Windows.Forms.Button multiplication;
|
|
private System.Windows.Forms.Button substraction;
|
|
private System.Windows.Forms.Button addition;
|
|
private System.Windows.Forms.Button enter;
|
|
private System.Windows.Forms.Button button_0;
|
|
private System.Windows.Forms.Button point;
|
|
private System.Windows.Forms.Button clear;
|
|
}
|
|
}
|
|
|