968 lines
No EOL
40 KiB
C#
968 lines
No EOL
40 KiB
C#
namespace calculator
|
|
{
|
|
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()
|
|
{
|
|
panel1 = new Panel();
|
|
button49 = new Button();
|
|
Log_button = new Button();
|
|
Mod_button = new Button();
|
|
Exp_button = new Button();
|
|
button53 = new Button();
|
|
CubeRoot_Button = new Button();
|
|
Cube_button = new Button();
|
|
Tan_button = new Button();
|
|
Tanh_button = new Button();
|
|
Pi_button = new Button();
|
|
SqrtY_button = new Button();
|
|
PowY_button = new Button();
|
|
Cos_button = new Button();
|
|
Cosh_button = new Button();
|
|
dms_button = new Button();
|
|
Factorial_button = new Button();
|
|
Square_button = new Button();
|
|
Sin_button = new Button();
|
|
Sinh_button = new Button();
|
|
Int_button = new Button();
|
|
button23 = new Button();
|
|
button30 = new Button();
|
|
Ln_button = new Button();
|
|
Inv_button = new Button();
|
|
button33 = new Button();
|
|
InverseButton = new Button();
|
|
MultButton = new Button();
|
|
SixButton = new Button();
|
|
FiveButton = new Button();
|
|
FourButton = new Button();
|
|
EqualButton = new Button();
|
|
PlusButton = new Button();
|
|
DotButton = new Button();
|
|
ZeroButton = new Button();
|
|
MinusButton = new Button();
|
|
ThreeButton = new Button();
|
|
TwoButton = new Button();
|
|
OneButton = new Button();
|
|
PercentButton = new Button();
|
|
DivideButton = new Button();
|
|
NineButton = new Button();
|
|
EightButton = new Button();
|
|
SevenButton = new Button();
|
|
SqrtButton = new Button();
|
|
NegativeButton = new Button();
|
|
button8 = new Button();
|
|
CE_button = new Button();
|
|
button10 = new Button();
|
|
button5 = new Button();
|
|
button4 = new Button();
|
|
button3 = new Button();
|
|
button2 = new Button();
|
|
button1 = new Button();
|
|
groupBox1 = new GroupBox();
|
|
radioButton3 = new RadioButton();
|
|
radioButton2 = new RadioButton();
|
|
radioButton1 = new RadioButton();
|
|
textBox1 = new TextBox();
|
|
linkLabel1 = new LinkLabel();
|
|
linkLabel2 = new LinkLabel();
|
|
linkLabel3 = new LinkLabel();
|
|
panel1.SuspendLayout();
|
|
groupBox1.SuspendLayout();
|
|
SuspendLayout();
|
|
//
|
|
// panel1
|
|
//
|
|
panel1.BackColor = Color.MediumSlateBlue;
|
|
panel1.Controls.Add(button49);
|
|
panel1.Controls.Add(Log_button);
|
|
panel1.Controls.Add(Mod_button);
|
|
panel1.Controls.Add(Exp_button);
|
|
panel1.Controls.Add(button53);
|
|
panel1.Controls.Add(CubeRoot_Button);
|
|
panel1.Controls.Add(Cube_button);
|
|
panel1.Controls.Add(Tan_button);
|
|
panel1.Controls.Add(Tanh_button);
|
|
panel1.Controls.Add(Pi_button);
|
|
panel1.Controls.Add(SqrtY_button);
|
|
panel1.Controls.Add(PowY_button);
|
|
panel1.Controls.Add(Cos_button);
|
|
panel1.Controls.Add(Cosh_button);
|
|
panel1.Controls.Add(dms_button);
|
|
panel1.Controls.Add(Factorial_button);
|
|
panel1.Controls.Add(Square_button);
|
|
panel1.Controls.Add(Sin_button);
|
|
panel1.Controls.Add(Sinh_button);
|
|
panel1.Controls.Add(Int_button);
|
|
panel1.Controls.Add(button23);
|
|
panel1.Controls.Add(button30);
|
|
panel1.Controls.Add(Ln_button);
|
|
panel1.Controls.Add(Inv_button);
|
|
panel1.Controls.Add(button33);
|
|
panel1.Controls.Add(InverseButton);
|
|
panel1.Controls.Add(MultButton);
|
|
panel1.Controls.Add(SixButton);
|
|
panel1.Controls.Add(FiveButton);
|
|
panel1.Controls.Add(FourButton);
|
|
panel1.Controls.Add(EqualButton);
|
|
panel1.Controls.Add(PlusButton);
|
|
panel1.Controls.Add(DotButton);
|
|
panel1.Controls.Add(ZeroButton);
|
|
panel1.Controls.Add(MinusButton);
|
|
panel1.Controls.Add(ThreeButton);
|
|
panel1.Controls.Add(TwoButton);
|
|
panel1.Controls.Add(OneButton);
|
|
panel1.Controls.Add(PercentButton);
|
|
panel1.Controls.Add(DivideButton);
|
|
panel1.Controls.Add(NineButton);
|
|
panel1.Controls.Add(EightButton);
|
|
panel1.Controls.Add(SevenButton);
|
|
panel1.Controls.Add(SqrtButton);
|
|
panel1.Controls.Add(NegativeButton);
|
|
panel1.Controls.Add(button8);
|
|
panel1.Controls.Add(CE_button);
|
|
panel1.Controls.Add(button10);
|
|
panel1.Controls.Add(button5);
|
|
panel1.Controls.Add(button4);
|
|
panel1.Controls.Add(button3);
|
|
panel1.Controls.Add(button2);
|
|
panel1.Controls.Add(button1);
|
|
panel1.Controls.Add(groupBox1);
|
|
panel1.Controls.Add(textBox1);
|
|
panel1.Location = new Point(16, 28);
|
|
panel1.Name = "panel1";
|
|
panel1.Size = new Size(573, 338);
|
|
panel1.TabIndex = 0;
|
|
//
|
|
// button49
|
|
//
|
|
button49.FlatStyle = FlatStyle.Flat;
|
|
button49.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
button49.Location = new Point(232, 296);
|
|
button49.Name = "button49";
|
|
button49.Size = new Size(51, 37);
|
|
button49.TabIndex = 55;
|
|
button49.Text = "10ᵜ";
|
|
button49.UseVisualStyleBackColor = true;
|
|
//
|
|
// Log_button
|
|
//
|
|
Log_button.FlatStyle = FlatStyle.Flat;
|
|
Log_button.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
Log_button.Location = new Point(175, 296);
|
|
Log_button.Name = "Log_button";
|
|
Log_button.Size = new Size(51, 37);
|
|
Log_button.TabIndex = 54;
|
|
Log_button.Text = "log";
|
|
Log_button.UseVisualStyleBackColor = true;
|
|
Log_button.Click += OnLogButtonClick;
|
|
//
|
|
// Mod_button
|
|
//
|
|
Mod_button.FlatStyle = FlatStyle.Flat;
|
|
Mod_button.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
Mod_button.Location = new Point(118, 296);
|
|
Mod_button.Name = "Mod_button";
|
|
Mod_button.Size = new Size(51, 37);
|
|
Mod_button.TabIndex = 53;
|
|
Mod_button.Text = "Mod";
|
|
Mod_button.UseVisualStyleBackColor = true;
|
|
Mod_button.Click += OnModButtonClick;
|
|
//
|
|
// Exp_button
|
|
//
|
|
Exp_button.FlatStyle = FlatStyle.Flat;
|
|
Exp_button.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
Exp_button.Location = new Point(61, 296);
|
|
Exp_button.Name = "Exp_button";
|
|
Exp_button.Size = new Size(51, 37);
|
|
Exp_button.TabIndex = 52;
|
|
Exp_button.Text = "Exp";
|
|
Exp_button.UseVisualStyleBackColor = true;
|
|
Exp_button.Click += OnExpButtonClick;
|
|
//
|
|
// button53
|
|
//
|
|
button53.FlatStyle = FlatStyle.Flat;
|
|
button53.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
button53.Location = new Point(4, 296);
|
|
button53.Name = "button53";
|
|
button53.Size = new Size(51, 37);
|
|
button53.TabIndex = 51;
|
|
button53.Text = "F-E";
|
|
button53.UseVisualStyleBackColor = true;
|
|
//
|
|
// CubeRoot_Button
|
|
//
|
|
CubeRoot_Button.FlatStyle = FlatStyle.Flat;
|
|
CubeRoot_Button.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
CubeRoot_Button.Location = new Point(232, 253);
|
|
CubeRoot_Button.Name = "CubeRoot_Button";
|
|
CubeRoot_Button.Size = new Size(51, 37);
|
|
CubeRoot_Button.TabIndex = 50;
|
|
CubeRoot_Button.Text = "∛x";
|
|
CubeRoot_Button.UseVisualStyleBackColor = true;
|
|
CubeRoot_Button.Click += OnCubeRootButtonClick;
|
|
//
|
|
// Cube_button
|
|
//
|
|
Cube_button.FlatStyle = FlatStyle.Flat;
|
|
Cube_button.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
Cube_button.Location = new Point(175, 253);
|
|
Cube_button.Name = "Cube_button";
|
|
Cube_button.Size = new Size(51, 37);
|
|
Cube_button.TabIndex = 49;
|
|
Cube_button.Text = "x³";
|
|
Cube_button.UseVisualStyleBackColor = true;
|
|
Cube_button.Click += OnCubeButtonClick;
|
|
//
|
|
// Tan_button
|
|
//
|
|
Tan_button.FlatStyle = FlatStyle.Flat;
|
|
Tan_button.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
Tan_button.Location = new Point(118, 253);
|
|
Tan_button.Name = "Tan_button";
|
|
Tan_button.Size = new Size(51, 37);
|
|
Tan_button.TabIndex = 48;
|
|
Tan_button.Text = "tan";
|
|
Tan_button.UseVisualStyleBackColor = true;
|
|
Tan_button.Click += OnTanButtonClick;
|
|
//
|
|
// Tanh_button
|
|
//
|
|
Tanh_button.FlatStyle = FlatStyle.Flat;
|
|
Tanh_button.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
Tanh_button.Location = new Point(61, 253);
|
|
Tanh_button.Name = "Tanh_button";
|
|
Tanh_button.Size = new Size(51, 37);
|
|
Tanh_button.TabIndex = 47;
|
|
Tanh_button.Text = "tanh";
|
|
Tanh_button.UseVisualStyleBackColor = true;
|
|
Tanh_button.Click += OnTanhButtonClick;
|
|
//
|
|
// Pi_button
|
|
//
|
|
Pi_button.FlatStyle = FlatStyle.Flat;
|
|
Pi_button.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
Pi_button.Location = new Point(4, 253);
|
|
Pi_button.Name = "Pi_button";
|
|
Pi_button.Size = new Size(51, 37);
|
|
Pi_button.TabIndex = 46;
|
|
Pi_button.Text = "π";
|
|
Pi_button.UseVisualStyleBackColor = true;
|
|
Pi_button.Click += OnPiButtonClick;
|
|
//
|
|
// SqrtY_button
|
|
//
|
|
SqrtY_button.FlatStyle = FlatStyle.Flat;
|
|
SqrtY_button.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
SqrtY_button.Location = new Point(232, 210);
|
|
SqrtY_button.Name = "SqrtY_button";
|
|
SqrtY_button.Size = new Size(51, 37);
|
|
SqrtY_button.TabIndex = 45;
|
|
SqrtY_button.Text = "y√x";
|
|
SqrtY_button.UseVisualStyleBackColor = true;
|
|
SqrtY_button.Click += OnSqrtYButtonClick;
|
|
//
|
|
// PowY_button
|
|
//
|
|
PowY_button.FlatStyle = FlatStyle.Flat;
|
|
PowY_button.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
PowY_button.Location = new Point(175, 210);
|
|
PowY_button.Name = "PowY_button";
|
|
PowY_button.Size = new Size(51, 37);
|
|
PowY_button.TabIndex = 44;
|
|
PowY_button.Text = "xᵜ";
|
|
PowY_button.UseVisualStyleBackColor = true;
|
|
PowY_button.Click += OnPowYButtonClick;
|
|
//
|
|
// Cos_button
|
|
//
|
|
Cos_button.FlatStyle = FlatStyle.Flat;
|
|
Cos_button.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
Cos_button.Location = new Point(118, 210);
|
|
Cos_button.Name = "Cos_button";
|
|
Cos_button.Size = new Size(51, 37);
|
|
Cos_button.TabIndex = 43;
|
|
Cos_button.Text = "cos";
|
|
Cos_button.UseVisualStyleBackColor = true;
|
|
Cos_button.Click += OnCosButtonClick;
|
|
//
|
|
// Cosh_button
|
|
//
|
|
Cosh_button.FlatStyle = FlatStyle.Flat;
|
|
Cosh_button.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
Cosh_button.Location = new Point(61, 210);
|
|
Cosh_button.Name = "Cosh_button";
|
|
Cosh_button.Size = new Size(51, 37);
|
|
Cosh_button.TabIndex = 42;
|
|
Cosh_button.Text = "cosh";
|
|
Cosh_button.UseVisualStyleBackColor = true;
|
|
Cosh_button.Click += OnCoshButtonClick;
|
|
//
|
|
// dms_button
|
|
//
|
|
dms_button.FlatStyle = FlatStyle.Flat;
|
|
dms_button.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
dms_button.Location = new Point(4, 210);
|
|
dms_button.Name = "dms_button";
|
|
dms_button.Size = new Size(51, 37);
|
|
dms_button.TabIndex = 41;
|
|
dms_button.Text = "dms";
|
|
dms_button.UseVisualStyleBackColor = true;
|
|
//
|
|
// Factorial_button
|
|
//
|
|
Factorial_button.FlatStyle = FlatStyle.Flat;
|
|
Factorial_button.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
Factorial_button.Location = new Point(232, 167);
|
|
Factorial_button.Name = "Factorial_button";
|
|
Factorial_button.Size = new Size(51, 37);
|
|
Factorial_button.TabIndex = 40;
|
|
Factorial_button.Text = "n!";
|
|
Factorial_button.UseVisualStyleBackColor = true;
|
|
Factorial_button.Click += OnFactorialButtonClick;
|
|
//
|
|
// Square_button
|
|
//
|
|
Square_button.FlatStyle = FlatStyle.Flat;
|
|
Square_button.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
Square_button.Location = new Point(175, 167);
|
|
Square_button.Name = "Square_button";
|
|
Square_button.Size = new Size(51, 37);
|
|
Square_button.TabIndex = 39;
|
|
Square_button.Text = "Х²";
|
|
Square_button.UseVisualStyleBackColor = true;
|
|
Square_button.Click += OnSquareButtonClick;
|
|
//
|
|
// Sin_button
|
|
//
|
|
Sin_button.FlatStyle = FlatStyle.Flat;
|
|
Sin_button.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
Sin_button.Location = new Point(118, 167);
|
|
Sin_button.Name = "Sin_button";
|
|
Sin_button.Size = new Size(51, 37);
|
|
Sin_button.TabIndex = 38;
|
|
Sin_button.Text = "sin";
|
|
Sin_button.UseVisualStyleBackColor = true;
|
|
Sin_button.Click += OnSinButtonClick;
|
|
//
|
|
// Sinh_button
|
|
//
|
|
Sinh_button.FlatStyle = FlatStyle.Flat;
|
|
Sinh_button.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
Sinh_button.Location = new Point(61, 167);
|
|
Sinh_button.Name = "Sinh_button";
|
|
Sinh_button.Size = new Size(51, 37);
|
|
Sinh_button.TabIndex = 37;
|
|
Sinh_button.Text = "sinh";
|
|
Sinh_button.UseVisualStyleBackColor = true;
|
|
Sinh_button.Click += OnSinhButtonClick;
|
|
//
|
|
// Int_button
|
|
//
|
|
Int_button.FlatStyle = FlatStyle.Flat;
|
|
Int_button.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
Int_button.Location = new Point(4, 167);
|
|
Int_button.Name = "Int_button";
|
|
Int_button.Size = new Size(51, 37);
|
|
Int_button.TabIndex = 36;
|
|
Int_button.Text = "Int";
|
|
Int_button.UseVisualStyleBackColor = true;
|
|
//
|
|
// button23
|
|
//
|
|
button23.FlatStyle = FlatStyle.Flat;
|
|
button23.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
button23.Location = new Point(232, 124);
|
|
button23.Name = "button23";
|
|
button23.Size = new Size(51, 37);
|
|
button23.TabIndex = 35;
|
|
button23.Text = ")";
|
|
button23.UseVisualStyleBackColor = true;
|
|
button23.Click += OnCloseBracketButtonClick;
|
|
//
|
|
// button30
|
|
//
|
|
button30.FlatStyle = FlatStyle.Flat;
|
|
button30.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
button30.Location = new Point(175, 124);
|
|
button30.Name = "button30";
|
|
button30.Size = new Size(51, 37);
|
|
button30.TabIndex = 34;
|
|
button30.Text = "(";
|
|
button30.UseVisualStyleBackColor = true;
|
|
button30.Click += OnOpenBracketButtonClick;
|
|
//
|
|
// Ln_button
|
|
//
|
|
Ln_button.FlatStyle = FlatStyle.Flat;
|
|
Ln_button.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
Ln_button.Location = new Point(118, 124);
|
|
Ln_button.Name = "Ln_button";
|
|
Ln_button.Size = new Size(51, 37);
|
|
Ln_button.TabIndex = 33;
|
|
Ln_button.Text = "Ln";
|
|
Ln_button.UseVisualStyleBackColor = true;
|
|
Ln_button.Click += OnLnButtonClick;
|
|
//
|
|
// Inv_button
|
|
//
|
|
Inv_button.FlatStyle = FlatStyle.Flat;
|
|
Inv_button.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
Inv_button.Location = new Point(61, 124);
|
|
Inv_button.Name = "Inv_button";
|
|
Inv_button.Size = new Size(51, 37);
|
|
Inv_button.TabIndex = 32;
|
|
Inv_button.Text = "Inv";
|
|
Inv_button.UseVisualStyleBackColor = true;
|
|
Inv_button.Click += OnInvButtonClick;
|
|
//
|
|
// button33
|
|
//
|
|
button33.BackColor = Color.SlateBlue;
|
|
button33.BackgroundImageLayout = ImageLayout.None;
|
|
button33.Cursor = Cursors.No;
|
|
button33.Enabled = false;
|
|
button33.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
button33.Location = new Point(4, 124);
|
|
button33.Name = "button33";
|
|
button33.Size = new Size(51, 37);
|
|
button33.TabIndex = 31;
|
|
button33.UseVisualStyleBackColor = false;
|
|
//
|
|
// InverseButton
|
|
//
|
|
InverseButton.FlatStyle = FlatStyle.Flat;
|
|
InverseButton.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
InverseButton.Location = new Point(517, 210);
|
|
InverseButton.Name = "InverseButton";
|
|
InverseButton.Size = new Size(51, 37);
|
|
InverseButton.TabIndex = 30;
|
|
InverseButton.Text = "1/x";
|
|
InverseButton.UseVisualStyleBackColor = true;
|
|
InverseButton.Click += OnInverseButtonClick;
|
|
//
|
|
// MultButton
|
|
//
|
|
MultButton.FlatStyle = FlatStyle.Flat;
|
|
MultButton.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
MultButton.Location = new Point(460, 210);
|
|
MultButton.Name = "MultButton";
|
|
MultButton.Size = new Size(51, 37);
|
|
MultButton.TabIndex = 29;
|
|
MultButton.Text = "*";
|
|
MultButton.UseVisualStyleBackColor = true;
|
|
MultButton.Click += OnMultButtonClick;
|
|
//
|
|
// SixButton
|
|
//
|
|
SixButton.FlatStyle = FlatStyle.Flat;
|
|
SixButton.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
SixButton.Location = new Point(403, 210);
|
|
SixButton.Name = "SixButton";
|
|
SixButton.Size = new Size(51, 37);
|
|
SixButton.TabIndex = 28;
|
|
SixButton.Text = "6";
|
|
SixButton.UseVisualStyleBackColor = true;
|
|
SixButton.Click += OnSixButtonClick;
|
|
//
|
|
// FiveButton
|
|
//
|
|
FiveButton.FlatStyle = FlatStyle.Flat;
|
|
FiveButton.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
FiveButton.Location = new Point(346, 210);
|
|
FiveButton.Name = "FiveButton";
|
|
FiveButton.Size = new Size(51, 37);
|
|
FiveButton.TabIndex = 27;
|
|
FiveButton.Text = "5";
|
|
FiveButton.UseVisualStyleBackColor = true;
|
|
FiveButton.Click += OnFiveButtonClick;
|
|
//
|
|
// FourButton
|
|
//
|
|
FourButton.FlatStyle = FlatStyle.Flat;
|
|
FourButton.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
FourButton.Location = new Point(289, 210);
|
|
FourButton.Name = "FourButton";
|
|
FourButton.Size = new Size(51, 37);
|
|
FourButton.TabIndex = 26;
|
|
FourButton.Text = "4";
|
|
FourButton.UseVisualStyleBackColor = true;
|
|
FourButton.Click += OnFourButtonClick;
|
|
//
|
|
// EqualButton
|
|
//
|
|
EqualButton.FlatStyle = FlatStyle.Flat;
|
|
EqualButton.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
EqualButton.Location = new Point(517, 253);
|
|
EqualButton.Name = "EqualButton";
|
|
EqualButton.Size = new Size(51, 80);
|
|
EqualButton.TabIndex = 25;
|
|
EqualButton.Text = "=";
|
|
EqualButton.UseVisualStyleBackColor = true;
|
|
EqualButton.Click += OnEqualButtonClick;
|
|
//
|
|
// PlusButton
|
|
//
|
|
PlusButton.FlatStyle = FlatStyle.Flat;
|
|
PlusButton.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
PlusButton.Location = new Point(460, 296);
|
|
PlusButton.Name = "PlusButton";
|
|
PlusButton.Size = new Size(51, 37);
|
|
PlusButton.TabIndex = 24;
|
|
PlusButton.Text = "+";
|
|
PlusButton.UseVisualStyleBackColor = true;
|
|
PlusButton.Click += OnPlusButtonClick;
|
|
//
|
|
// DotButton
|
|
//
|
|
DotButton.FlatStyle = FlatStyle.Flat;
|
|
DotButton.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
DotButton.Location = new Point(403, 296);
|
|
DotButton.Name = "DotButton";
|
|
DotButton.Size = new Size(51, 37);
|
|
DotButton.TabIndex = 23;
|
|
DotButton.Text = ",";
|
|
DotButton.UseVisualStyleBackColor = true;
|
|
DotButton.Click += OnDotButtonClick;
|
|
//
|
|
// ZeroButton
|
|
//
|
|
ZeroButton.FlatStyle = FlatStyle.Flat;
|
|
ZeroButton.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
ZeroButton.Location = new Point(289, 296);
|
|
ZeroButton.Name = "ZeroButton";
|
|
ZeroButton.Size = new Size(108, 37);
|
|
ZeroButton.TabIndex = 22;
|
|
ZeroButton.Text = "0";
|
|
ZeroButton.UseVisualStyleBackColor = true;
|
|
ZeroButton.Click += OnZeroButtonClick;
|
|
//
|
|
// MinusButton
|
|
//
|
|
MinusButton.FlatStyle = FlatStyle.Flat;
|
|
MinusButton.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
MinusButton.Location = new Point(460, 253);
|
|
MinusButton.Name = "MinusButton";
|
|
MinusButton.Size = new Size(51, 37);
|
|
MinusButton.TabIndex = 20;
|
|
MinusButton.Text = "-";
|
|
MinusButton.UseVisualStyleBackColor = true;
|
|
MinusButton.Click += OnMinusButtonClick;
|
|
//
|
|
// ThreeButton
|
|
//
|
|
ThreeButton.FlatStyle = FlatStyle.Flat;
|
|
ThreeButton.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
ThreeButton.Location = new Point(403, 253);
|
|
ThreeButton.Name = "ThreeButton";
|
|
ThreeButton.Size = new Size(51, 37);
|
|
ThreeButton.TabIndex = 19;
|
|
ThreeButton.Text = "3";
|
|
ThreeButton.UseVisualStyleBackColor = true;
|
|
ThreeButton.Click += OnThreeButtonClick;
|
|
//
|
|
// TwoButton
|
|
//
|
|
TwoButton.FlatStyle = FlatStyle.Flat;
|
|
TwoButton.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
TwoButton.Location = new Point(346, 253);
|
|
TwoButton.Name = "TwoButton";
|
|
TwoButton.Size = new Size(51, 37);
|
|
TwoButton.TabIndex = 18;
|
|
TwoButton.Text = "2";
|
|
TwoButton.UseVisualStyleBackColor = true;
|
|
TwoButton.Click += OnTwoButtonClick;
|
|
//
|
|
// OneButton
|
|
//
|
|
OneButton.FlatStyle = FlatStyle.Flat;
|
|
OneButton.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
OneButton.Location = new Point(289, 253);
|
|
OneButton.Name = "OneButton";
|
|
OneButton.Size = new Size(51, 37);
|
|
OneButton.TabIndex = 17;
|
|
OneButton.Text = "1";
|
|
OneButton.UseVisualStyleBackColor = true;
|
|
OneButton.Click += OnOneButtonClick;
|
|
//
|
|
// PercentButton
|
|
//
|
|
PercentButton.FlatStyle = FlatStyle.Flat;
|
|
PercentButton.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
PercentButton.Location = new Point(517, 167);
|
|
PercentButton.Name = "PercentButton";
|
|
PercentButton.Size = new Size(51, 37);
|
|
PercentButton.TabIndex = 16;
|
|
PercentButton.Text = "%";
|
|
PercentButton.UseVisualStyleBackColor = true;
|
|
PercentButton.Click += OnPercentButtonClick;
|
|
//
|
|
// DivideButton
|
|
//
|
|
DivideButton.FlatStyle = FlatStyle.Flat;
|
|
DivideButton.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
DivideButton.Location = new Point(460, 167);
|
|
DivideButton.Name = "DivideButton";
|
|
DivideButton.Size = new Size(51, 37);
|
|
DivideButton.TabIndex = 15;
|
|
DivideButton.Text = "/";
|
|
DivideButton.UseVisualStyleBackColor = true;
|
|
DivideButton.Click += OnDivideButtonClick;
|
|
//
|
|
// NineButton
|
|
//
|
|
NineButton.FlatStyle = FlatStyle.Flat;
|
|
NineButton.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
NineButton.Location = new Point(403, 167);
|
|
NineButton.Name = "NineButton";
|
|
NineButton.Size = new Size(51, 37);
|
|
NineButton.TabIndex = 14;
|
|
NineButton.Text = "9";
|
|
NineButton.UseVisualStyleBackColor = true;
|
|
NineButton.Click += OnNineButtonClick;
|
|
//
|
|
// EightButton
|
|
//
|
|
EightButton.FlatStyle = FlatStyle.Flat;
|
|
EightButton.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
EightButton.Location = new Point(346, 167);
|
|
EightButton.Name = "EightButton";
|
|
EightButton.Size = new Size(51, 37);
|
|
EightButton.TabIndex = 13;
|
|
EightButton.Text = "8";
|
|
EightButton.UseVisualStyleBackColor = true;
|
|
EightButton.Click += OnEightButtonClick;
|
|
//
|
|
// SevenButton
|
|
//
|
|
SevenButton.FlatStyle = FlatStyle.Flat;
|
|
SevenButton.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
SevenButton.Location = new Point(289, 167);
|
|
SevenButton.Name = "SevenButton";
|
|
SevenButton.Size = new Size(51, 37);
|
|
SevenButton.TabIndex = 12;
|
|
SevenButton.Text = "7";
|
|
SevenButton.UseVisualStyleBackColor = true;
|
|
SevenButton.Click += OnSevenButtonClick;
|
|
//
|
|
// SqrtButton
|
|
//
|
|
SqrtButton.FlatStyle = FlatStyle.Flat;
|
|
SqrtButton.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
SqrtButton.Location = new Point(517, 124);
|
|
SqrtButton.Name = "SqrtButton";
|
|
SqrtButton.Size = new Size(51, 37);
|
|
SqrtButton.TabIndex = 11;
|
|
SqrtButton.Text = "√";
|
|
SqrtButton.UseVisualStyleBackColor = true;
|
|
SqrtButton.Click += OnSqrtButtonClick;
|
|
//
|
|
// NegativeButton
|
|
//
|
|
NegativeButton.FlatStyle = FlatStyle.Flat;
|
|
NegativeButton.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
NegativeButton.Location = new Point(460, 124);
|
|
NegativeButton.Name = "NegativeButton";
|
|
NegativeButton.Size = new Size(51, 37);
|
|
NegativeButton.TabIndex = 10;
|
|
NegativeButton.Text = "±";
|
|
NegativeButton.UseVisualStyleBackColor = true;
|
|
NegativeButton.Click += OnNegativeButtonClick;
|
|
//
|
|
// button8
|
|
//
|
|
button8.FlatStyle = FlatStyle.Flat;
|
|
button8.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
button8.Location = new Point(403, 124);
|
|
button8.Name = "button8";
|
|
button8.Size = new Size(51, 37);
|
|
button8.TabIndex = 9;
|
|
button8.Text = "C";
|
|
button8.UseVisualStyleBackColor = true;
|
|
button8.Click += CButtonClick;
|
|
//
|
|
// CE_button
|
|
//
|
|
CE_button.FlatStyle = FlatStyle.Flat;
|
|
CE_button.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
CE_button.Location = new Point(346, 124);
|
|
CE_button.Name = "CE_button";
|
|
CE_button.Size = new Size(51, 37);
|
|
CE_button.TabIndex = 8;
|
|
CE_button.Text = "CE";
|
|
CE_button.UseVisualStyleBackColor = true;
|
|
CE_button.Click += OnCEButtonClick;
|
|
//
|
|
// button10
|
|
//
|
|
button10.FlatStyle = FlatStyle.Flat;
|
|
button10.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
button10.Location = new Point(289, 124);
|
|
button10.Name = "button10";
|
|
button10.Size = new Size(51, 37);
|
|
button10.TabIndex = 7;
|
|
button10.Text = "←";
|
|
button10.UseVisualStyleBackColor = true;
|
|
//
|
|
// button5
|
|
//
|
|
button5.FlatStyle = FlatStyle.Flat;
|
|
button5.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
button5.Location = new Point(517, 81);
|
|
button5.Name = "button5";
|
|
button5.Size = new Size(51, 37);
|
|
button5.TabIndex = 6;
|
|
button5.Text = "M-";
|
|
button5.UseVisualStyleBackColor = true;
|
|
//
|
|
// button4
|
|
//
|
|
button4.FlatStyle = FlatStyle.Flat;
|
|
button4.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
button4.Location = new Point(460, 81);
|
|
button4.Name = "button4";
|
|
button4.Size = new Size(51, 37);
|
|
button4.TabIndex = 5;
|
|
button4.Text = "M+";
|
|
button4.UseVisualStyleBackColor = true;
|
|
//
|
|
// button3
|
|
//
|
|
button3.FlatStyle = FlatStyle.Flat;
|
|
button3.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
button3.Location = new Point(403, 81);
|
|
button3.Name = "button3";
|
|
button3.Size = new Size(51, 37);
|
|
button3.TabIndex = 4;
|
|
button3.Text = "MS";
|
|
button3.UseVisualStyleBackColor = true;
|
|
//
|
|
// button2
|
|
//
|
|
button2.FlatStyle = FlatStyle.Flat;
|
|
button2.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
button2.Location = new Point(346, 81);
|
|
button2.Name = "button2";
|
|
button2.Size = new Size(51, 37);
|
|
button2.TabIndex = 3;
|
|
button2.Text = "MR";
|
|
button2.UseVisualStyleBackColor = true;
|
|
//
|
|
// button1
|
|
//
|
|
button1.FlatStyle = FlatStyle.Flat;
|
|
button1.Font = new Font("Segoe UI", 9.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
button1.Location = new Point(289, 81);
|
|
button1.Name = "button1";
|
|
button1.Size = new Size(51, 37);
|
|
button1.TabIndex = 2;
|
|
button1.Text = "MC";
|
|
button1.UseVisualStyleBackColor = true;
|
|
//
|
|
// groupBox1
|
|
//
|
|
groupBox1.Controls.Add(radioButton3);
|
|
groupBox1.Controls.Add(radioButton2);
|
|
groupBox1.Controls.Add(radioButton1);
|
|
groupBox1.Location = new Point(4, 75);
|
|
groupBox1.Name = "groupBox1";
|
|
groupBox1.Size = new Size(279, 43);
|
|
groupBox1.TabIndex = 1;
|
|
groupBox1.TabStop = false;
|
|
//
|
|
// radioButton3
|
|
//
|
|
radioButton3.AutoSize = true;
|
|
radioButton3.Font = new Font("Microsoft Sans Serif", 11.25F, FontStyle.Bold | FontStyle.Italic, GraphicsUnit.Point);
|
|
radioButton3.ForeColor = Color.FromArgb(255, 192, 255);
|
|
radioButton3.Location = new Point(197, 13);
|
|
radioButton3.Name = "radioButton3";
|
|
radioButton3.Size = new Size(76, 22);
|
|
radioButton3.TabIndex = 2;
|
|
radioButton3.TabStop = true;
|
|
radioButton3.Text = "Грады";
|
|
radioButton3.UseVisualStyleBackColor = true;
|
|
//
|
|
// radioButton2
|
|
//
|
|
radioButton2.AutoSize = true;
|
|
radioButton2.Font = new Font("Microsoft Sans Serif", 11.25F, FontStyle.Bold | FontStyle.Italic, GraphicsUnit.Point);
|
|
radioButton2.ForeColor = Color.FromArgb(255, 192, 255);
|
|
radioButton2.Location = new Point(98, 13);
|
|
radioButton2.Name = "radioButton2";
|
|
radioButton2.Size = new Size(95, 22);
|
|
radioButton2.TabIndex = 1;
|
|
radioButton2.TabStop = true;
|
|
radioButton2.Text = "Радианы";
|
|
radioButton2.UseVisualStyleBackColor = true;
|
|
//
|
|
// radioButton1
|
|
//
|
|
radioButton1.AutoSize = true;
|
|
radioButton1.Font = new Font("Microsoft Sans Serif", 11.25F, FontStyle.Bold | FontStyle.Italic, GraphicsUnit.Point);
|
|
radioButton1.ForeColor = Color.FromArgb(255, 192, 255);
|
|
radioButton1.Location = new Point(6, 13);
|
|
radioButton1.Name = "radioButton1";
|
|
radioButton1.Size = new Size(93, 22);
|
|
radioButton1.TabIndex = 0;
|
|
radioButton1.TabStop = true;
|
|
radioButton1.Text = "Градусы";
|
|
radioButton1.UseVisualStyleBackColor = true;
|
|
//
|
|
// textBox1
|
|
//
|
|
textBox1.BackColor = Color.FromArgb(192, 192, 255);
|
|
textBox1.Cursor = Cursors.No;
|
|
textBox1.Enabled = false;
|
|
textBox1.Font = new Font("Myanmar Text", 27.75F, FontStyle.Bold, GraphicsUnit.Point);
|
|
textBox1.ForeColor = Color.FromArgb(255, 192, 255);
|
|
textBox1.Location = new Point(3, 3);
|
|
textBox1.Multiline = true;
|
|
textBox1.Name = "textBox1";
|
|
textBox1.Size = new Size(567, 72);
|
|
textBox1.TabIndex = 0;
|
|
//
|
|
// linkLabel1
|
|
//
|
|
linkLabel1.AutoSize = true;
|
|
linkLabel1.LinkColor = Color.FromArgb(255, 192, 255);
|
|
linkLabel1.Location = new Point(16, 6);
|
|
linkLabel1.Name = "linkLabel1";
|
|
linkLabel1.Size = new Size(27, 15);
|
|
linkLabel1.TabIndex = 1;
|
|
linkLabel1.TabStop = true;
|
|
linkLabel1.Text = "Вид";
|
|
//
|
|
// linkLabel2
|
|
//
|
|
linkLabel2.AutoSize = true;
|
|
linkLabel2.LinkColor = Color.FromArgb(255, 192, 255);
|
|
linkLabel2.Location = new Point(49, 6);
|
|
linkLabel2.Name = "linkLabel2";
|
|
linkLabel2.Size = new Size(47, 15);
|
|
linkLabel2.TabIndex = 2;
|
|
linkLabel2.TabStop = true;
|
|
linkLabel2.Text = "Правка";
|
|
//
|
|
// linkLabel3
|
|
//
|
|
linkLabel3.AutoSize = true;
|
|
linkLabel3.LinkColor = Color.FromArgb(255, 192, 255);
|
|
linkLabel3.Location = new Point(102, 6);
|
|
linkLabel3.Name = "linkLabel3";
|
|
linkLabel3.Size = new Size(53, 15);
|
|
linkLabel3.TabIndex = 3;
|
|
linkLabel3.TabStop = true;
|
|
linkLabel3.Text = "Справка";
|
|
//
|
|
// Form1
|
|
//
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
BackColor = Color.Indigo;
|
|
ClientSize = new Size(607, 378);
|
|
Controls.Add(linkLabel3);
|
|
Controls.Add(linkLabel2);
|
|
Controls.Add(linkLabel1);
|
|
Controls.Add(panel1);
|
|
Name = "Form1";
|
|
Text = "Form1";
|
|
panel1.ResumeLayout(false);
|
|
panel1.PerformLayout();
|
|
groupBox1.ResumeLayout(false);
|
|
groupBox1.PerformLayout();
|
|
ResumeLayout(false);
|
|
PerformLayout();
|
|
}
|
|
|
|
#endregion
|
|
|
|
private Panel panel1;
|
|
private Button button5;
|
|
private Button button4;
|
|
private Button button3;
|
|
private Button button2;
|
|
private Button button1;
|
|
private GroupBox groupBox1;
|
|
private RadioButton radioButton3;
|
|
private RadioButton radioButton2;
|
|
private RadioButton radioButton1;
|
|
private TextBox textBox1;
|
|
private LinkLabel linkLabel1;
|
|
private LinkLabel linkLabel2;
|
|
private LinkLabel linkLabel3;
|
|
private Button button49;
|
|
private Button Log_button;
|
|
private Button Mod_button;
|
|
private Button Exp_button;
|
|
private Button button53;
|
|
private Button CubeRoot_Button;
|
|
private Button Cube_button;
|
|
private Button Tan_button;
|
|
private Button Tanh_button;
|
|
private Button Pi_button;
|
|
private Button SqrtY_button;
|
|
private Button PowY_button;
|
|
private Button Cos_button;
|
|
private Button Cosh_button;
|
|
private Button dms_button;
|
|
private Button Factorial_button;
|
|
private Button Square_button;
|
|
private Button Sin_button;
|
|
private Button Sinh_button;
|
|
private Button Int_button;
|
|
private Button button23;
|
|
private Button button30;
|
|
private Button Ln_button;
|
|
private Button Inv_button;
|
|
private Button button33;
|
|
private Button InverseButton;
|
|
private Button MultButton;
|
|
private Button SixButton;
|
|
private Button FiveButton;
|
|
private Button FourButton;
|
|
private Button EqualButton;
|
|
private Button PlusButton;
|
|
private Button DotButton;
|
|
private Button ZeroButton;
|
|
private Button MinusButton;
|
|
private Button ThreeButton;
|
|
private Button TwoButton;
|
|
private Button OneButton;
|
|
private Button PercentButton;
|
|
private Button DivideButton;
|
|
private Button NineButton;
|
|
private Button EightButton;
|
|
private Button SevenButton;
|
|
private Button SqrtButton;
|
|
private Button NegativeButton;
|
|
private Button button8;
|
|
private Button CE_button;
|
|
private Button button10;
|
|
}
|
|
} |