Загрузка данных
namespace WinFormsApp1
{
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()
{
display = new TextBox();
layout = new TableLayoutPanel();
btnBack = new Button();
btnCE = new Button();
btnC = new Button();
btnSign = new Button();
btnPercent = new Button();
btnDiv = new Button();
btnMul = new Button();
btnSub = new Button();
btn7 = new Button();
btn8 = new Button();
btn9 = new Button();
btnAdd = new Button();
btn4 = new Button();
btn5 = new Button();
btn6 = new Button();
btnEquals = new Button();
btn1 = new Button();
btn2 = new Button();
btn3 = new Button();
btn0 = new Button();
button2 = new Button();
layout.SuspendLayout();
SuspendLayout();
//
// display
//
display.Dock = DockStyle.Top;
display.Font = new Font("Segoe UI Semibold", 22.75F, FontStyle.Bold);
display.Location = new Point(0, 0);
display.Name = "display";
display.ReadOnly = true;
display.Size = new Size(347, 48);
display.TabIndex = 0;
display.TabStop = false;
display.Text = "0";
display.TextAlign = HorizontalAlignment.Right;
display.TextChanged += textBox1_TextChanged;
//
// layout
//
layout.ColumnCount = 4;
layout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F));
layout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F));
layout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F));
layout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F));
layout.Controls.Add(button2, 2, 5);
layout.Controls.Add(btn0, 0, 5);
layout.Controls.Add(btn1, 0, 4);
layout.Controls.Add(btn2, 1, 4);
layout.Controls.Add(btn3, 2, 4);
layout.Controls.Add(btn4, 0, 3);
layout.Controls.Add(btn5, 1, 3);
layout.Controls.Add(btn6, 2, 3);
layout.Controls.Add(btnEquals, 3, 3);
layout.Controls.Add(btn7, 0, 2);
layout.Controls.Add(btn8, 1, 2);
layout.Controls.Add(btn9, 2, 2);
layout.Controls.Add(btnAdd, 3, 2);
layout.Controls.Add(btnPercent, 0, 1);
layout.Controls.Add(btnDiv, 1, 1);
layout.Controls.Add(btnMul, 2, 1);
layout.Controls.Add(btnSub, 3, 1);
layout.Controls.Add(btnSign, 3, 0);
layout.Controls.Add(btnC, 2, 0);
layout.Controls.Add(btnCE, 1, 0);
layout.Controls.Add(btnBack, 0, 0);
layout.Dock = DockStyle.Fill;
layout.Location = new Point(0, 48);
layout.Name = "layout";
layout.RowCount = 6;
layout.RowStyles.Add(new RowStyle(SizeType.Percent, 16.6666679F));
layout.RowStyles.Add(new RowStyle(SizeType.Percent, 16.6666679F));
layout.RowStyles.Add(new RowStyle(SizeType.Percent, 16.6666679F));
layout.RowStyles.Add(new RowStyle(SizeType.Percent, 16.6666679F));
layout.RowStyles.Add(new RowStyle(SizeType.Percent, 16.6666679F));
layout.RowStyles.Add(new RowStyle(SizeType.Percent, 16.6666679F));
layout.Size = new Size(347, 460);
layout.TabIndex = 1;
//
// btnBack
//
btnBack.Dock = DockStyle.Fill;
btnBack.FlatAppearance.BorderSize = 0;
btnBack.FlatStyle = FlatStyle.Flat;
btnBack.Font = new Font("Segoe UI", 14F);
btnBack.Location = new Point(2, 2);
btnBack.Margin = new Padding(2);
btnBack.Name = "btnBack";
btnBack.Size = new Size(82, 72);
btnBack.TabIndex = 0;
btnBack.Text = "⌫";
btnBack.UseVisualStyleBackColor = true;
//
// btnCE
//
btnCE.Dock = DockStyle.Fill;
btnCE.FlatAppearance.BorderSize = 0;
btnCE.FlatStyle = FlatStyle.Flat;
btnCE.Font = new Font("Segoe UI", 14F);
btnCE.Location = new Point(88, 2);
btnCE.Margin = new Padding(2);
btnCE.Name = "btnCE";
btnCE.Size = new Size(82, 72);
btnCE.TabIndex = 1;
btnCE.Text = "CE";
btnCE.UseVisualStyleBackColor = true;
//
// btnC
//
btnC.Dock = DockStyle.Fill;
btnC.FlatAppearance.BorderSize = 0;
btnC.FlatStyle = FlatStyle.Flat;
btnC.Font = new Font("Segoe UI", 14F);
btnC.Location = new Point(174, 2);
btnC.Margin = new Padding(2);
btnC.Name = "btnC";
btnC.Size = new Size(82, 72);
btnC.TabIndex = 2;
btnC.Text = "C";
btnC.UseVisualStyleBackColor = true;
//
// btnSign
//
btnSign.Dock = DockStyle.Fill;
btnSign.FlatAppearance.BorderSize = 0;
btnSign.FlatStyle = FlatStyle.Flat;
btnSign.Font = new Font("Segoe UI", 14F);
btnSign.Location = new Point(260, 2);
btnSign.Margin = new Padding(2);
btnSign.Name = "btnSign";
btnSign.Size = new Size(85, 72);
btnSign.TabIndex = 3;
btnSign.Text = "±";
btnSign.UseVisualStyleBackColor = true;
//
// btnPercent
//
btnPercent.Dock = DockStyle.Fill;
btnPercent.FlatAppearance.BorderSize = 0;
btnPercent.FlatStyle = FlatStyle.Flat;
btnPercent.Font = new Font("Segoe UI", 14F);
btnPercent.Location = new Point(2, 78);
btnPercent.Margin = new Padding(2);
btnPercent.Name = "btnPercent";
btnPercent.Size = new Size(82, 72);
btnPercent.TabIndex = 7;
btnPercent.Text = "%";
btnPercent.UseVisualStyleBackColor = true;
//
// btnDiv
//
btnDiv.Dock = DockStyle.Fill;
btnDiv.FlatAppearance.BorderSize = 0;
btnDiv.FlatStyle = FlatStyle.Flat;
btnDiv.Font = new Font("Segoe UI", 14F);
btnDiv.Location = new Point(88, 78);
btnDiv.Margin = new Padding(2);
btnDiv.Name = "btnDiv";
btnDiv.Size = new Size(82, 72);
btnDiv.TabIndex = 6;
btnDiv.Text = "÷";
btnDiv.UseVisualStyleBackColor = true;
//
// btnMul
//
btnMul.Dock = DockStyle.Fill;
btnMul.FlatAppearance.BorderSize = 0;
btnMul.FlatStyle = FlatStyle.Flat;
btnMul.Font = new Font("Segoe UI", 14F);
btnMul.Location = new Point(174, 78);
btnMul.Margin = new Padding(2);
btnMul.Name = "btnMul";
btnMul.Size = new Size(82, 72);
btnMul.TabIndex = 5;
btnMul.Text = "×";
btnMul.UseVisualStyleBackColor = true;
//
// btnSub
//
btnSub.Dock = DockStyle.Fill;
btnSub.FlatAppearance.BorderSize = 0;
btnSub.FlatStyle = FlatStyle.Flat;
btnSub.Font = new Font("Segoe UI", 14F);
btnSub.Location = new Point(260, 78);
btnSub.Margin = new Padding(2);
btnSub.Name = "btnSub";
btnSub.Size = new Size(85, 72);
btnSub.TabIndex = 4;
btnSub.Text = "−";
btnSub.UseVisualStyleBackColor = true;
//
// btn7
//
btn7.Dock = DockStyle.Fill;
btn7.FlatAppearance.BorderSize = 0;
btn7.FlatStyle = FlatStyle.Flat;
btn7.Font = new Font("Segoe UI", 14F);
btn7.Location = new Point(2, 154);
btn7.Margin = new Padding(2);
btn7.Name = "btn7";
btn7.Size = new Size(82, 72);
btn7.TabIndex = 11;
btn7.Text = "7";
btn7.UseVisualStyleBackColor = true;
//
// btn8
//
btn8.Dock = DockStyle.Fill;
btn8.FlatAppearance.BorderSize = 0;
btn8.FlatStyle = FlatStyle.Flat;
btn8.Font = new Font("Segoe UI", 14F);
btn8.Location = new Point(88, 154);
btn8.Margin = new Padding(2);
btn8.Name = "btn8";
btn8.Size = new Size(82, 72);
btn8.TabIndex = 10;
btn8.Text = "8";
btn8.UseVisualStyleBackColor = true;
//
// btn9
//
btn9.Dock = DockStyle.Fill;
btn9.FlatAppearance.BorderSize = 0;
btn9.FlatStyle = FlatStyle.Flat;
btn9.Font = new Font("Segoe UI", 14F);
btn9.Location = new Point(174, 154);
btn9.Margin = new Padding(2);
btn9.Name = "btn9";
btn9.Size = new Size(82, 72);
btn9.TabIndex = 9;
btn9.Text = "9";
btn9.UseVisualStyleBackColor = true;
//
// btnAdd
//
btnAdd.Dock = DockStyle.Fill;
btnAdd.FlatAppearance.BorderSize = 0;
btnAdd.FlatStyle = FlatStyle.Flat;
btnAdd.Font = new Font("Segoe UI", 14F);
btnAdd.Location = new Point(260, 154);
btnAdd.Margin = new Padding(2);
btnAdd.Name = "btnAdd";
btnAdd.Size = new Size(85, 72);
btnAdd.TabIndex = 8;
btnAdd.Text = "+";
btnAdd.UseVisualStyleBackColor = true;
//
// btn4
//
btn4.Dock = DockStyle.Fill;
btn4.FlatAppearance.BorderSize = 0;
btn4.FlatStyle = FlatStyle.Flat;
btn4.Font = new Font("Segoe UI", 14F);
btn4.Location = new Point(2, 230);
btn4.Margin = new Padding(2);
btn4.Name = "btn4";
btn4.Size = new Size(82, 72);
btn4.TabIndex = 15;
btn4.Text = "4";
btn4.UseVisualStyleBackColor = true;
//
// btn5
//
btn5.Dock = DockStyle.Fill;
btn5.FlatAppearance.BorderSize = 0;
btn5.FlatStyle = FlatStyle.Flat;
btn5.Font = new Font("Segoe UI", 14F);
btn5.Location = new Point(88, 230);
btn5.Margin = new Padding(2);
btn5.Name = "btn5";
btn5.Size = new Size(82, 72);
btn5.TabIndex = 14;
btn5.Text = "5";
btn5.UseVisualStyleBackColor = true;
btn5.Click += button10_Click;
//
// btn6
//
btn6.Dock = DockStyle.Fill;
btn6.FlatAppearance.BorderSize = 0;
btn6.FlatStyle = FlatStyle.Flat;
btn6.Font = new Font("Segoe UI", 14F);
btn6.Location = new Point(174, 230);
btn6.Margin = new Padding(2);
btn6.Name = "btn6";
btn6.Size = new Size(82, 72);
btn6.TabIndex = 13;
btn6.Text = "6";
btn6.UseVisualStyleBackColor = true;
//
// btnEquals
//
btnEquals.Dock = DockStyle.Fill;
btnEquals.FlatAppearance.BorderSize = 0;
btnEquals.FlatStyle = FlatStyle.Flat;
btnEquals.Font = new Font("Segoe UI", 14F);
btnEquals.Location = new Point(260, 230);
btnEquals.Margin = new Padding(2);
btnEquals.Name = "btnEquals";
btnEquals.Size = new Size(85, 72);
btnEquals.TabIndex = 12;
btnEquals.Text = "=";
btnEquals.UseVisualStyleBackColor = true;
btnEquals.Click += button12_Click;
//
// btn1
//
btn1.Dock = DockStyle.Fill;
btn1.FlatAppearance.BorderSize = 0;
btn1.FlatStyle = FlatStyle.Flat;
btn1.Font = new Font("Segoe UI", 14F);
btn1.Location = new Point(2, 306);
btn1.Margin = new Padding(2);
btn1.Name = "btn1";
btn1.Size = new Size(82, 72);
btn1.TabIndex = 18;
btn1.Text = "1";
btn1.UseVisualStyleBackColor = true;
btn1.Click += button5_Click;
//
// btn2
//
btn2.Dock = DockStyle.Fill;
btn2.FlatAppearance.BorderSize = 0;
btn2.FlatStyle = FlatStyle.Flat;
btn2.Font = new Font("Segoe UI", 14F);
btn2.Location = new Point(88, 306);
btn2.Margin = new Padding(2);
btn2.Name = "btn2";
btn2.Size = new Size(82, 72);
btn2.TabIndex = 17;
btn2.Text = "2";
btn2.UseVisualStyleBackColor = true;
//
// btn3
//
btn3.Dock = DockStyle.Fill;
btn3.FlatAppearance.BorderSize = 0;
btn3.FlatStyle = FlatStyle.Flat;
btn3.Font = new Font("Segoe UI", 14F);
btn3.Location = new Point(174, 306);
btn3.Margin = new Padding(2);
btn3.Name = "btn3";
btn3.Size = new Size(82, 72);
btn3.TabIndex = 16;
btn3.Text = "3";
btn3.UseVisualStyleBackColor = true;
//
// btn0
//
btn0.Dock = DockStyle.Fill;
btn0.FlatAppearance.BorderSize = 0;
btn0.FlatStyle = FlatStyle.Flat;
btn0.Font = new Font("Segoe UI", 14F);
btn0.Location = new Point(2, 382);
btn0.Margin = new Padding(2);
btn0.Name = "btn0";
btn0.Size = new Size(82, 76);
btn0.TabIndex = 20;
btn0.Text = "0";
btn0.UseVisualStyleBackColor = true;
btn0.Click += button13_Click;
//
// button2
//
button2.Dock = DockStyle.Fill;
button2.FlatAppearance.BorderSize = 0;
button2.FlatStyle = FlatStyle.Flat;
button2.Font = new Font("Segoe UI", 14F);
button2.Location = new Point(174, 382);
button2.Margin = new Padding(2);
button2.Name = "button2";
button2.Size = new Size(82, 76);
button2.TabIndex = 23;
button2.Text = ",";
button2.UseVisualStyleBackColor = true;
//
// Form1
//
AutoScaleDimensions = new SizeF(8F, 20F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(347, 508);
Controls.Add(layout);
Controls.Add(display);
Font = new Font("Segoe UI", 11F);
KeyPreview = true;
Margin = new Padding(3, 4, 3, 4);
MaximumSize = new Size(363, 547);
MinimumSize = new Size(318, 494);
Name = "Form1";
StartPosition = FormStartPosition.CenterScreen;
Text = "Калькулятор";
layout.ResumeLayout(false);
ResumeLayout(false);
PerformLayout();
}
#endregion
private TextBox display;
private TableLayoutPanel layout;
private Button btnSign;
private Button btnC;
private Button btnCE;
private Button btnBack;
private Button btnPercent;
private Button btnDiv;
private Button btnMul;
private Button btnSub;
private Button btn4;
private Button btn5;
private Button btn6;
private Button btnEquals;
private Button btn7;
private Button btn8;
private Button btn9;
private Button btnAdd;
private Button btn0;
private Button btn1;
private Button btn2;
private Button btn3;
private Button button2;
}
}