|
@@ -0,0 +1,341 @@
|
|
|
|
+namespace Zharushkin_calculator2
|
|
|
|
+{
|
|
|
|
+ partial class Form1
|
|
|
|
+ {
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// Обязательная переменная конструктора.
|
|
|
|
+ /// </summary>
|
|
|
|
+ private System.ComponentModel.IContainer components = null;
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// Освободить все используемые ресурсы.
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <param name="disposing">истинно, если управляемый ресурс должен быть удален; иначе ложно.</param>
|
|
|
|
+ protected override void Dispose(bool disposing)
|
|
|
|
+ {
|
|
|
|
+ if (disposing && (components != null))
|
|
|
|
+ {
|
|
|
|
+ components.Dispose();
|
|
|
|
+ }
|
|
|
|
+ base.Dispose(disposing);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ #region Код, автоматически созданный конструктором форм Windows
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// Требуемый метод для поддержки конструктора — не изменяйте
|
|
|
|
+ /// содержимое этого метода с помощью редактора кода.
|
|
|
|
+ /// </summary>
|
|
|
|
+ private void InitializeComponent()
|
|
|
|
+ {
|
|
|
|
+ this.textBox1 = new System.Windows.Forms.TextBox();
|
|
|
|
+ this.button1 = new System.Windows.Forms.Button();
|
|
|
|
+ this.label1 = new System.Windows.Forms.Label();
|
|
|
|
+ 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.button10 = new System.Windows.Forms.Button();
|
|
|
|
+ this.button11 = new System.Windows.Forms.Button();
|
|
|
|
+ this.button12 = new System.Windows.Forms.Button();
|
|
|
|
+ this.button13 = new System.Windows.Forms.Button();
|
|
|
|
+ this.button14 = new System.Windows.Forms.Button();
|
|
|
|
+ this.button15 = new System.Windows.Forms.Button();
|
|
|
|
+ this.button16 = new System.Windows.Forms.Button();
|
|
|
|
+ this.button17 = new System.Windows.Forms.Button();
|
|
|
|
+ this.button18 = new System.Windows.Forms.Button();
|
|
|
|
+ this.button19 = new System.Windows.Forms.Button();
|
|
|
|
+ this.SuspendLayout();
|
|
|
|
+ //
|
|
|
|
+ // textBox1
|
|
|
|
+ //
|
|
|
|
+ this.textBox1.Location = new System.Drawing.Point(12, 30);
|
|
|
|
+ this.textBox1.Multiline = true;
|
|
|
|
+ this.textBox1.Name = "textBox1";
|
|
|
|
+ this.textBox1.Size = new System.Drawing.Size(281, 48);
|
|
|
|
+ this.textBox1.TabIndex = 0;
|
|
|
|
+ this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
|
|
|
|
+ //
|
|
|
|
+ // button1
|
|
|
|
+ //
|
|
|
|
+ this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
|
|
+ this.button1.Location = new System.Drawing.Point(12, 114);
|
|
|
|
+ this.button1.Name = "button1";
|
|
|
|
+ this.button1.Size = new System.Drawing.Size(54, 39);
|
|
|
|
+ this.button1.TabIndex = 1;
|
|
|
|
+ this.button1.Text = "C";
|
|
|
|
+ this.button1.UseVisualStyleBackColor = true;
|
|
|
|
+ this.button1.Click += new System.EventHandler(this.button1_Click);
|
|
|
|
+ //
|
|
|
|
+ // label1
|
|
|
|
+ //
|
|
|
|
+ this.label1.AutoSize = true;
|
|
|
|
+ this.label1.BackColor = System.Drawing.Color.Yellow;
|
|
|
|
+ this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
|
|
+ this.label1.Location = new System.Drawing.Point(22, 42);
|
|
|
|
+ this.label1.Name = "label1";
|
|
|
|
+ this.label1.Size = new System.Drawing.Size(0, 24);
|
|
|
|
+ this.label1.TabIndex = 3;
|
|
|
|
+ this.label1.Click += new System.EventHandler(this.label1_Click);
|
|
|
|
+ //
|
|
|
|
+ // button2
|
|
|
|
+ //
|
|
|
|
+ this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
|
|
+ this.button2.Location = new System.Drawing.Point(88, 114);
|
|
|
|
+ this.button2.Name = "button2";
|
|
|
|
+ this.button2.Size = new System.Drawing.Size(54, 39);
|
|
|
|
+ this.button2.TabIndex = 4;
|
|
|
|
+ this.button2.Text = "<-";
|
|
|
|
+ this.button2.UseVisualStyleBackColor = true;
|
|
|
|
+ this.button2.Click += new System.EventHandler(this.button2_Click);
|
|
|
|
+ //
|
|
|
|
+ // button3
|
|
|
|
+ //
|
|
|
|
+ this.button3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
|
|
+ this.button3.Location = new System.Drawing.Point(167, 114);
|
|
|
|
+ this.button3.Name = "button3";
|
|
|
|
+ this.button3.Size = new System.Drawing.Size(54, 39);
|
|
|
|
+ this.button3.TabIndex = 5;
|
|
|
|
+ this.button3.Text = "+/-";
|
|
|
|
+ this.button3.UseVisualStyleBackColor = true;
|
|
|
|
+ this.button3.Click += new System.EventHandler(this.button3_Click);
|
|
|
|
+ //
|
|
|
|
+ // button4
|
|
|
|
+ //
|
|
|
|
+ this.button4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
|
|
+ this.button4.Location = new System.Drawing.Point(239, 114);
|
|
|
|
+ this.button4.Name = "button4";
|
|
|
|
+ this.button4.Size = new System.Drawing.Size(54, 39);
|
|
|
|
+ this.button4.TabIndex = 6;
|
|
|
|
+ this.button4.Text = "+";
|
|
|
|
+ this.button4.UseVisualStyleBackColor = true;
|
|
|
|
+ this.button4.Click += new System.EventHandler(this.button4_Click);
|
|
|
|
+ //
|
|
|
|
+ // button5
|
|
|
|
+ //
|
|
|
|
+ this.button5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
|
|
+ this.button5.Location = new System.Drawing.Point(239, 173);
|
|
|
|
+ this.button5.Name = "button5";
|
|
|
|
+ this.button5.Size = new System.Drawing.Size(56, 39);
|
|
|
|
+ this.button5.TabIndex = 7;
|
|
|
|
+ this.button5.Text = "-";
|
|
|
|
+ this.button5.UseVisualStyleBackColor = true;
|
|
|
|
+ this.button5.Click += new System.EventHandler(this.button5_Click);
|
|
|
|
+ //
|
|
|
|
+ // button6
|
|
|
|
+ //
|
|
|
|
+ this.button6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
|
|
+ this.button6.Location = new System.Drawing.Point(239, 234);
|
|
|
|
+ this.button6.Name = "button6";
|
|
|
|
+ this.button6.Size = new System.Drawing.Size(56, 39);
|
|
|
|
+ this.button6.TabIndex = 8;
|
|
|
|
+ this.button6.Text = "*";
|
|
|
|
+ this.button6.UseVisualStyleBackColor = true;
|
|
|
|
+ this.button6.Click += new System.EventHandler(this.button6_Click);
|
|
|
|
+ //
|
|
|
|
+ // button7
|
|
|
|
+ //
|
|
|
|
+ this.button7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
|
|
+ this.button7.Location = new System.Drawing.Point(239, 299);
|
|
|
|
+ this.button7.Name = "button7";
|
|
|
|
+ this.button7.Size = new System.Drawing.Size(56, 39);
|
|
|
|
+ this.button7.TabIndex = 9;
|
|
|
|
+ this.button7.Text = "/";
|
|
|
|
+ this.button7.UseVisualStyleBackColor = true;
|
|
|
|
+ this.button7.Click += new System.EventHandler(this.button7_Click);
|
|
|
|
+ //
|
|
|
|
+ // button8
|
|
|
|
+ //
|
|
|
|
+ this.button8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
|
|
+ this.button8.Location = new System.Drawing.Point(167, 354);
|
|
|
|
+ this.button8.Name = "button8";
|
|
|
|
+ this.button8.Size = new System.Drawing.Size(128, 39);
|
|
|
|
+ this.button8.TabIndex = 10;
|
|
|
|
+ this.button8.Text = "=";
|
|
|
|
+ this.button8.UseVisualStyleBackColor = true;
|
|
|
|
+ this.button8.Click += new System.EventHandler(this.button8_Click);
|
|
|
|
+ //
|
|
|
|
+ // button9
|
|
|
|
+ //
|
|
|
|
+ this.button9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
|
|
+ this.button9.Location = new System.Drawing.Point(86, 354);
|
|
|
|
+ this.button9.Name = "button9";
|
|
|
|
+ this.button9.Size = new System.Drawing.Size(56, 39);
|
|
|
|
+ this.button9.TabIndex = 11;
|
|
|
|
+ this.button9.Text = ".";
|
|
|
|
+ this.button9.UseVisualStyleBackColor = true;
|
|
|
|
+ //
|
|
|
|
+ // button10
|
|
|
|
+ //
|
|
|
|
+ this.button10.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
|
|
+ this.button10.Location = new System.Drawing.Point(12, 354);
|
|
|
|
+ this.button10.Name = "button10";
|
|
|
|
+ this.button10.Size = new System.Drawing.Size(56, 39);
|
|
|
|
+ this.button10.TabIndex = 12;
|
|
|
|
+ this.button10.Text = "0";
|
|
|
|
+ this.button10.UseVisualStyleBackColor = true;
|
|
|
|
+ this.button10.Click += new System.EventHandler(this.button10_Click);
|
|
|
|
+ //
|
|
|
|
+ // button11
|
|
|
|
+ //
|
|
|
|
+ this.button11.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
|
|
+ this.button11.Location = new System.Drawing.Point(12, 299);
|
|
|
|
+ this.button11.Name = "button11";
|
|
|
|
+ this.button11.Size = new System.Drawing.Size(56, 39);
|
|
|
|
+ this.button11.TabIndex = 13;
|
|
|
|
+ this.button11.Text = "1";
|
|
|
|
+ this.button11.UseVisualStyleBackColor = true;
|
|
|
|
+ this.button11.Click += new System.EventHandler(this.button11_Click);
|
|
|
|
+ //
|
|
|
|
+ // button12
|
|
|
|
+ //
|
|
|
|
+ this.button12.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
|
|
+ this.button12.Location = new System.Drawing.Point(88, 299);
|
|
|
|
+ this.button12.Name = "button12";
|
|
|
|
+ this.button12.Size = new System.Drawing.Size(56, 39);
|
|
|
|
+ this.button12.TabIndex = 14;
|
|
|
|
+ this.button12.Text = "2";
|
|
|
|
+ this.button12.UseVisualStyleBackColor = true;
|
|
|
|
+ this.button12.Click += new System.EventHandler(this.button12_Click);
|
|
|
|
+ //
|
|
|
|
+ // button13
|
|
|
|
+ //
|
|
|
|
+ this.button13.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
|
|
+ this.button13.Location = new System.Drawing.Point(165, 299);
|
|
|
|
+ this.button13.Name = "button13";
|
|
|
|
+ this.button13.Size = new System.Drawing.Size(56, 39);
|
|
|
|
+ this.button13.TabIndex = 15;
|
|
|
|
+ this.button13.Text = "3";
|
|
|
|
+ this.button13.UseVisualStyleBackColor = true;
|
|
|
|
+ this.button13.Click += new System.EventHandler(this.button13_Click);
|
|
|
|
+ //
|
|
|
|
+ // button14
|
|
|
|
+ //
|
|
|
|
+ this.button14.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
|
|
+ this.button14.Location = new System.Drawing.Point(165, 234);
|
|
|
|
+ this.button14.Name = "button14";
|
|
|
|
+ this.button14.Size = new System.Drawing.Size(56, 39);
|
|
|
|
+ this.button14.TabIndex = 18;
|
|
|
|
+ this.button14.Text = "6";
|
|
|
|
+ this.button14.UseVisualStyleBackColor = true;
|
|
|
|
+ this.button14.Click += new System.EventHandler(this.button14_Click);
|
|
|
|
+ //
|
|
|
|
+ // button15
|
|
|
|
+ //
|
|
|
|
+ this.button15.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
|
|
+ this.button15.Location = new System.Drawing.Point(88, 234);
|
|
|
|
+ this.button15.Name = "button15";
|
|
|
|
+ this.button15.Size = new System.Drawing.Size(56, 39);
|
|
|
|
+ this.button15.TabIndex = 17;
|
|
|
|
+ this.button15.Text = "5";
|
|
|
|
+ this.button15.UseVisualStyleBackColor = true;
|
|
|
|
+ this.button15.Click += new System.EventHandler(this.button15_Click);
|
|
|
|
+ //
|
|
|
|
+ // button16
|
|
|
|
+ //
|
|
|
|
+ this.button16.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
|
|
+ this.button16.Location = new System.Drawing.Point(12, 234);
|
|
|
|
+ this.button16.Name = "button16";
|
|
|
|
+ this.button16.Size = new System.Drawing.Size(56, 39);
|
|
|
|
+ this.button16.TabIndex = 16;
|
|
|
|
+ this.button16.Text = "4";
|
|
|
|
+ this.button16.UseVisualStyleBackColor = true;
|
|
|
|
+ this.button16.Click += new System.EventHandler(this.button16_Click);
|
|
|
|
+ //
|
|
|
|
+ // button17
|
|
|
|
+ //
|
|
|
|
+ this.button17.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
|
|
+ this.button17.Location = new System.Drawing.Point(163, 173);
|
|
|
|
+ this.button17.Name = "button17";
|
|
|
|
+ this.button17.Size = new System.Drawing.Size(56, 39);
|
|
|
|
+ this.button17.TabIndex = 21;
|
|
|
|
+ this.button17.Text = "9";
|
|
|
|
+ this.button17.UseVisualStyleBackColor = true;
|
|
|
|
+ this.button17.Click += new System.EventHandler(this.button17_Click);
|
|
|
|
+ //
|
|
|
|
+ // button18
|
|
|
|
+ //
|
|
|
|
+ this.button18.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
|
|
+ this.button18.Location = new System.Drawing.Point(86, 173);
|
|
|
|
+ this.button18.Name = "button18";
|
|
|
|
+ this.button18.Size = new System.Drawing.Size(56, 39);
|
|
|
|
+ this.button18.TabIndex = 20;
|
|
|
|
+ this.button18.Text = "8";
|
|
|
|
+ this.button18.UseVisualStyleBackColor = true;
|
|
|
|
+ this.button18.Click += new System.EventHandler(this.button18_Click);
|
|
|
|
+ //
|
|
|
|
+ // button19
|
|
|
|
+ //
|
|
|
|
+ this.button19.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
|
|
+ this.button19.Location = new System.Drawing.Point(10, 173);
|
|
|
|
+ this.button19.Name = "button19";
|
|
|
|
+ this.button19.Size = new System.Drawing.Size(56, 39);
|
|
|
|
+ this.button19.TabIndex = 19;
|
|
|
|
+ this.button19.Text = "7";
|
|
|
|
+ this.button19.UseVisualStyleBackColor = true;
|
|
|
|
+ this.button19.Click += new System.EventHandler(this.button19_Click);
|
|
|
|
+ //
|
|
|
|
+ // Form1
|
|
|
|
+ //
|
|
|
|
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
|
|
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
|
+ this.BackColor = System.Drawing.Color.CornflowerBlue;
|
|
|
|
+ this.ClientSize = new System.Drawing.Size(305, 450);
|
|
|
|
+ this.Controls.Add(this.button17);
|
|
|
|
+ this.Controls.Add(this.button18);
|
|
|
|
+ this.Controls.Add(this.button19);
|
|
|
|
+ this.Controls.Add(this.button14);
|
|
|
|
+ this.Controls.Add(this.button15);
|
|
|
|
+ this.Controls.Add(this.button16);
|
|
|
|
+ this.Controls.Add(this.button13);
|
|
|
|
+ this.Controls.Add(this.button12);
|
|
|
|
+ this.Controls.Add(this.button11);
|
|
|
|
+ this.Controls.Add(this.button10);
|
|
|
|
+ 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.label1);
|
|
|
|
+ this.Controls.Add(this.button1);
|
|
|
|
+ this.Controls.Add(this.textBox1);
|
|
|
|
+ this.Name = "Form1";
|
|
|
|
+ this.Text = "Калькулятор";
|
|
|
|
+ this.ResumeLayout(false);
|
|
|
|
+ this.PerformLayout();
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ #endregion
|
|
|
|
+
|
|
|
|
+ private System.Windows.Forms.TextBox textBox1;
|
|
|
|
+ private System.Windows.Forms.Button button1;
|
|
|
|
+ private System.Windows.Forms.Label label1;
|
|
|
|
+ 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 button10;
|
|
|
|
+ private System.Windows.Forms.Button button11;
|
|
|
|
+ private System.Windows.Forms.Button button12;
|
|
|
|
+ private System.Windows.Forms.Button button13;
|
|
|
|
+ private System.Windows.Forms.Button button14;
|
|
|
|
+ private System.Windows.Forms.Button button15;
|
|
|
|
+ private System.Windows.Forms.Button button16;
|
|
|
|
+ private System.Windows.Forms.Button button17;
|
|
|
|
+ private System.Windows.Forms.Button button18;
|
|
|
|
+ private System.Windows.Forms.Button button19;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|