diff --git a/Calculator/Calculator/App.config b/Calculator/Calculator/App.config
new file mode 100644
index 0000000..00bfd11
--- /dev/null
+++ b/Calculator/Calculator/App.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Calculator/Calculator/Calculator.csproj b/Calculator/Calculator/Calculator.csproj
new file mode 100644
index 0000000..b0dfbda
--- /dev/null
+++ b/Calculator/Calculator/Calculator.csproj
@@ -0,0 +1,83 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {4BF9438F-1BDB-41DD-9660-F73946CE1FF0}
+ WinExe
+ Calculator
+ Calculator
+ v4.6.1
+ 512
+ true
+
+
+ AnyCPU
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+ 4
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form
+
+
+ Form1.cs
+
+
+
+
+ Form1.cs
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+ Designer
+
+
+ True
+ Resources.resx
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+ True
+ Settings.settings
+ True
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Calculator/Calculator/Form1.Designer.cs b/Calculator/Calculator/Form1.Designer.cs
new file mode 100644
index 0000000..bfb9de4
--- /dev/null
+++ b/Calculator/Calculator/Form1.Designer.cs
@@ -0,0 +1,392 @@
+namespace Calculator
+{
+ partial class Form1
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
+ this.label1 = new System.Windows.Forms.Label();
+ this.button13 = new System.Windows.Forms.Button();
+ this.button12 = new System.Windows.Forms.Button();
+ this.button11 = new System.Windows.Forms.Button();
+ this.button10 = new System.Windows.Forms.Button();
+ this.textBox1 = new System.Windows.Forms.TextBox();
+ this.impartire = new System.Windows.Forms.Button();
+ this.inmultire = new System.Windows.Forms.Button();
+ this.minus = new System.Windows.Forms.Button();
+ this.plus = new System.Windows.Forms.Button();
+ this.egal = new System.Windows.Forms.Button();
+ this.punct = new System.Windows.Forms.Button();
+ this.button0 = new System.Windows.Forms.Button();
+ this.button9 = new System.Windows.Forms.Button();
+ this.button8 = new System.Windows.Forms.Button();
+ this.button7 = new System.Windows.Forms.Button();
+ this.button6 = new System.Windows.Forms.Button();
+ this.button5 = new System.Windows.Forms.Button();
+ this.button4 = new System.Windows.Forms.Button();
+ this.button3 = new System.Windows.Forms.Button();
+ this.button2 = new System.Windows.Forms.Button();
+ this.button1 = new System.Windows.Forms.Button();
+ this.TopPanel = new System.Windows.Forms.Panel();
+ this.CloseWindow_Btn = new System.Windows.Forms.Button();
+ this.MinimizeWindow_btn = new System.Windows.Forms.Button();
+ this.TopPanel.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.BackColor = System.Drawing.SystemColors.Window;
+ this.label1.ForeColor = System.Drawing.SystemColors.AppWorkspace;
+ this.label1.Location = new System.Drawing.Point(27, 42);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(0, 13);
+ this.label1.TabIndex = 20;
+ //
+ // button13
+ //
+ this.button13.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.button13.Location = new System.Drawing.Point(135, 238);
+ this.button13.Name = "button13";
+ this.button13.Size = new System.Drawing.Size(50, 40);
+ this.button13.TabIndex = 42;
+ this.button13.Text = "+/-";
+ this.button13.UseVisualStyleBackColor = true;
+ //
+ // button12
+ //
+ this.button12.Image = ((System.Drawing.Image)(resources.GetObject("button12.Image")));
+ this.button12.Location = new System.Drawing.Point(247, 100);
+ this.button12.Name = "button12";
+ this.button12.Size = new System.Drawing.Size(50, 40);
+ this.button12.TabIndex = 41;
+ this.button12.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
+ this.button12.UseVisualStyleBackColor = true;
+ //
+ // button11
+ //
+ this.button11.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.button11.Location = new System.Drawing.Point(247, 192);
+ this.button11.Name = "button11";
+ this.button11.Size = new System.Drawing.Size(50, 40);
+ this.button11.TabIndex = 40;
+ this.button11.Text = "CE";
+ this.button11.UseVisualStyleBackColor = true;
+ //
+ // button10
+ //
+ this.button10.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.button10.Location = new System.Drawing.Point(247, 146);
+ this.button10.Name = "button10";
+ this.button10.Size = new System.Drawing.Size(50, 40);
+ this.button10.TabIndex = 39;
+ this.button10.Text = "C";
+ this.button10.UseVisualStyleBackColor = true;
+ //
+ // textBox1
+ //
+ this.textBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.textBox1.Location = new System.Drawing.Point(24, 48);
+ this.textBox1.Multiline = true;
+ this.textBox1.Name = "textBox1";
+ this.textBox1.Size = new System.Drawing.Size(273, 32);
+ this.textBox1.TabIndex = 38;
+ this.textBox1.Text = "0";
+ this.textBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
+ //
+ // impartire
+ //
+ this.impartire.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.impartire.Location = new System.Drawing.Point(192, 238);
+ this.impartire.Name = "impartire";
+ this.impartire.Size = new System.Drawing.Size(49, 40);
+ this.impartire.TabIndex = 37;
+ this.impartire.Text = "/";
+ this.impartire.UseVisualStyleBackColor = true;
+ //
+ // inmultire
+ //
+ this.inmultire.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.inmultire.Location = new System.Drawing.Point(191, 192);
+ this.inmultire.Name = "inmultire";
+ this.inmultire.Size = new System.Drawing.Size(50, 40);
+ this.inmultire.TabIndex = 36;
+ this.inmultire.Text = "*";
+ this.inmultire.UseVisualStyleBackColor = true;
+ //
+ // minus
+ //
+ this.minus.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.minus.Location = new System.Drawing.Point(192, 146);
+ this.minus.Name = "minus";
+ this.minus.Size = new System.Drawing.Size(50, 40);
+ this.minus.TabIndex = 35;
+ this.minus.Text = "-";
+ this.minus.UseVisualStyleBackColor = true;
+ //
+ // plus
+ //
+ this.plus.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.plus.Location = new System.Drawing.Point(192, 100);
+ this.plus.Name = "plus";
+ this.plus.Size = new System.Drawing.Size(49, 40);
+ this.plus.TabIndex = 34;
+ this.plus.Text = "+";
+ this.plus.UseVisualStyleBackColor = true;
+ //
+ // egal
+ //
+ this.egal.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.egal.Location = new System.Drawing.Point(247, 238);
+ this.egal.Name = "egal";
+ this.egal.Size = new System.Drawing.Size(50, 40);
+ this.egal.TabIndex = 33;
+ this.egal.Text = "=";
+ this.egal.UseVisualStyleBackColor = true;
+ //
+ // punct
+ //
+ this.punct.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.punct.Location = new System.Drawing.Point(80, 238);
+ this.punct.Name = "punct";
+ this.punct.Size = new System.Drawing.Size(50, 40);
+ this.punct.TabIndex = 32;
+ this.punct.Text = ",";
+ this.punct.UseVisualStyleBackColor = true;
+ //
+ // button0
+ //
+ this.button0.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.button0.Location = new System.Drawing.Point(24, 238);
+ this.button0.Name = "button0";
+ this.button0.Size = new System.Drawing.Size(50, 40);
+ this.button0.TabIndex = 31;
+ this.button0.Text = "0";
+ this.button0.UseVisualStyleBackColor = true;
+ //
+ // button9
+ //
+ this.button9.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.button9.Location = new System.Drawing.Point(135, 100);
+ this.button9.Name = "button9";
+ this.button9.Size = new System.Drawing.Size(50, 40);
+ this.button9.TabIndex = 30;
+ this.button9.Text = "9";
+ this.button9.UseVisualStyleBackColor = true;
+ //
+ // button8
+ //
+ this.button8.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.button8.Location = new System.Drawing.Point(80, 100);
+ this.button8.Name = "button8";
+ this.button8.Size = new System.Drawing.Size(49, 40);
+ this.button8.TabIndex = 29;
+ this.button8.Text = "8";
+ this.button8.UseVisualStyleBackColor = true;
+ //
+ // button7
+ //
+ this.button7.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.button7.Location = new System.Drawing.Point(24, 100);
+ this.button7.Name = "button7";
+ this.button7.Size = new System.Drawing.Size(50, 40);
+ this.button7.TabIndex = 28;
+ this.button7.Text = "7";
+ this.button7.UseVisualStyleBackColor = true;
+ //
+ // button6
+ //
+ this.button6.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.button6.Location = new System.Drawing.Point(135, 146);
+ this.button6.Name = "button6";
+ this.button6.Size = new System.Drawing.Size(50, 40);
+ this.button6.TabIndex = 27;
+ this.button6.Text = "6";
+ this.button6.UseVisualStyleBackColor = true;
+ //
+ // button5
+ //
+ this.button5.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.button5.Location = new System.Drawing.Point(80, 146);
+ this.button5.Name = "button5";
+ this.button5.Size = new System.Drawing.Size(50, 40);
+ this.button5.TabIndex = 26;
+ this.button5.Text = "5";
+ this.button5.UseVisualStyleBackColor = true;
+ //
+ // button4
+ //
+ this.button4.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.button4.Location = new System.Drawing.Point(24, 146);
+ this.button4.Name = "button4";
+ this.button4.Size = new System.Drawing.Size(50, 40);
+ this.button4.TabIndex = 25;
+ this.button4.Text = "4";
+ this.button4.UseVisualStyleBackColor = true;
+ //
+ // button3
+ //
+ this.button3.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.button3.Location = new System.Drawing.Point(135, 192);
+ this.button3.Name = "button3";
+ this.button3.Size = new System.Drawing.Size(50, 40);
+ this.button3.TabIndex = 24;
+ this.button3.Text = "3";
+ this.button3.UseVisualStyleBackColor = true;
+ //
+ // button2
+ //
+ this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.button2.Location = new System.Drawing.Point(80, 192);
+ this.button2.Name = "button2";
+ this.button2.Size = new System.Drawing.Size(50, 40);
+ this.button2.TabIndex = 23;
+ this.button2.Text = "2";
+ this.button2.UseVisualStyleBackColor = true;
+ //
+ // button1
+ //
+ this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.button1.Location = new System.Drawing.Point(24, 192);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(50, 40);
+ this.button1.TabIndex = 22;
+ this.button1.Text = "1";
+ this.button1.UseVisualStyleBackColor = true;
+ //
+ // TopPanel
+ //
+ this.TopPanel.Controls.Add(this.MinimizeWindow_btn);
+ this.TopPanel.Controls.Add(this.CloseWindow_Btn);
+ this.TopPanel.Location = new System.Drawing.Point(0, 0);
+ this.TopPanel.Name = "TopPanel";
+ this.TopPanel.Size = new System.Drawing.Size(335, 26);
+ this.TopPanel.TabIndex = 43;
+ this.TopPanel.MouseDown += new System.Windows.Forms.MouseEventHandler(this.TopPanel_MouseDown);
+ this.TopPanel.MouseMove += new System.Windows.Forms.MouseEventHandler(this.TopPanel_MouseMove);
+ this.TopPanel.MouseUp += new System.Windows.Forms.MouseEventHandler(this.TopPanel_MouseUp);
+ //
+ // CloseWindow_Btn
+ //
+ this.CloseWindow_Btn.FlatAppearance.BorderSize = 0;
+ this.CloseWindow_Btn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.CloseWindow_Btn.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.CloseWindow_Btn.Location = new System.Drawing.Point(298, 0);
+ this.CloseWindow_Btn.Name = "CloseWindow_Btn";
+ this.CloseWindow_Btn.Size = new System.Drawing.Size(34, 26);
+ this.CloseWindow_Btn.TabIndex = 0;
+ this.CloseWindow_Btn.Text = "X";
+ this.CloseWindow_Btn.UseVisualStyleBackColor = true;
+ this.CloseWindow_Btn.Click += new System.EventHandler(this.CloseWindow_Btn_Click);
+ this.CloseWindow_Btn.MouseEnter += new System.EventHandler(this.CloseWindow_Btn_MouseEnter);
+ this.CloseWindow_Btn.MouseLeave += new System.EventHandler(this.CloseWindow_Btn_MouseLeave);
+ //
+ // MinimizeWindow_btn
+ //
+ this.MinimizeWindow_btn.FlatAppearance.BorderSize = 0;
+ this.MinimizeWindow_btn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.MinimizeWindow_btn.Font = new System.Drawing.Font("Ravie", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.MinimizeWindow_btn.Location = new System.Drawing.Point(258, 0);
+ this.MinimizeWindow_btn.Name = "MinimizeWindow_btn";
+ this.MinimizeWindow_btn.Size = new System.Drawing.Size(34, 26);
+ this.MinimizeWindow_btn.TabIndex = 1;
+ this.MinimizeWindow_btn.Text = "-";
+ this.MinimizeWindow_btn.UseVisualStyleBackColor = true;
+ this.MinimizeWindow_btn.Click += new System.EventHandler(this.MinimizeWindow_btn_Click);
+ this.MinimizeWindow_btn.MouseEnter += new System.EventHandler(this.MinimizeWindow_btn_MouseEnter);
+ this.MinimizeWindow_btn.MouseLeave += new System.EventHandler(this.MinimizeWindow_btn_MouseLeave);
+ //
+ // Form1
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(334, 314);
+ this.Controls.Add(this.TopPanel);
+ this.Controls.Add(this.button13);
+ this.Controls.Add(this.button12);
+ this.Controls.Add(this.button11);
+ this.Controls.Add(this.button10);
+ this.Controls.Add(this.textBox1);
+ this.Controls.Add(this.impartire);
+ this.Controls.Add(this.inmultire);
+ this.Controls.Add(this.minus);
+ this.Controls.Add(this.plus);
+ this.Controls.Add(this.egal);
+ this.Controls.Add(this.punct);
+ this.Controls.Add(this.button0);
+ 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.label1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+ this.KeyPreview = true;
+ this.MaximumSize = new System.Drawing.Size(334, 314);
+ this.MinimumSize = new System.Drawing.Size(334, 314);
+ this.Name = "Form1";
+ this.Text = "Calculator";
+ this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.Form1_KeyPress);
+ this.TopPanel.ResumeLayout(false);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.Button button13;
+ private System.Windows.Forms.Button button12;
+ private System.Windows.Forms.Button button11;
+ private System.Windows.Forms.Button button10;
+ private System.Windows.Forms.TextBox textBox1;
+ private System.Windows.Forms.Button impartire;
+ private System.Windows.Forms.Button inmultire;
+ private System.Windows.Forms.Button minus;
+ private System.Windows.Forms.Button plus;
+ private System.Windows.Forms.Button egal;
+ private System.Windows.Forms.Button punct;
+ private System.Windows.Forms.Button button0;
+ private System.Windows.Forms.Button button9;
+ private System.Windows.Forms.Button button8;
+ private System.Windows.Forms.Button button7;
+ private System.Windows.Forms.Button button6;
+ private System.Windows.Forms.Button button5;
+ private System.Windows.Forms.Button button4;
+ private System.Windows.Forms.Button button3;
+ private System.Windows.Forms.Button button2;
+ private System.Windows.Forms.Button button1;
+ private System.Windows.Forms.Panel TopPanel;
+ private System.Windows.Forms.Button CloseWindow_Btn;
+ private System.Windows.Forms.Button MinimizeWindow_btn;
+ }
+}
+
diff --git a/Calculator/Calculator/Form1.cs b/Calculator/Calculator/Form1.cs
new file mode 100644
index 0000000..d5c136b
--- /dev/null
+++ b/Calculator/Calculator/Form1.cs
@@ -0,0 +1,253 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Calculator
+{
+ public partial class Form1 : Form
+ {
+ Double result = 0;
+ String operation ="";
+ bool ok = false;
+
+ //For Making The Form Move
+ private bool drag_app;
+ private Point start_point = new Point(0, 0);
+
+ public Form1()
+ {
+ InitializeComponent();
+ }
+
+ private void Button_Click(object sender, EventArgs e)
+ {
+ if ((textBox1.Text == "0") || (ok)) //zero nu poate fi prima litera
+ textBox1.Clear();
+ ok = false;
+ Button b = (Button)sender;
+ /*
+ if (b.Text == ",")//daca butonul pe care l.am apasat este ","
+ {
+
+ if (!textBox1.Text.Contains(","))
+ textBox1.Text = textBox1.Text + b.Text;//punem "," atata timp cat nu mai este altul
+
+ }
+ else*/
+ textBox1.Text = textBox1.Text + b.Text; //daca nu punem punct continuam cu adaugarea cifrelor
+
+ }
+
+ private void Operator_Click(object sender, EventArgs e)
+ {
+ Button b = (Button)sender;
+ if (result != 0)
+ {
+ egal.PerformClick();
+ ok = true; //memoram faptul ca o operatie a fost selectata(pentru a nu se adauga noul numar peste celalalt)
+ operation = b.Text;
+ label1.Text =result + " " + operation;
+ result = Double.Parse(textBox1.Text);
+ }
+ else
+ {
+ operation = b.Text;
+ result = Double.Parse(textBox1.Text);
+ ok = true;
+ label1.Text =result + " " + operation;
+ }
+ }
+ private void button10_Click(object sender, EventArgs e)
+ {
+ textBox1.Text="0";
+ result = 0;
+ label1.Text = " ";
+
+ }
+ private void button11_Click(object sender, EventArgs e)
+ {
+ textBox1.Text = "0";
+ }
+
+ private void egal_Click(object sender, EventArgs e)
+ {
+ switch (operation)
+ {
+ case "+":
+ textBox1.Text = (result + Double.Parse(textBox1.Text)).ToString();
+ break;
+ case "-":
+ textBox1.Text = (result - Double.Parse(textBox1.Text)).ToString();
+ break;
+ case "*":
+ textBox1.Text = (result * Double.Parse(textBox1.Text)).ToString();
+ break;
+ case "/":
+ textBox1.Text = (result / Double.Parse(textBox1.Text)).ToString();
+ break;
+ default: break;
+ }
+
+ result = Double.Parse(textBox1.Text);//salvez al doilea numar
+ operation = "";//resetez operatia
+ // label1.Text = " ";
+ ok = true;
+
+
+ }
+
+ private void button12_Click(object sender, EventArgs e)
+ {
+ if (textBox1.Text.Length > 0)
+ textBox1.Text = textBox1.Text.Remove(textBox1.Text.Length - 1, 1);
+ else
+ textBox1.Text = "0";
+ }
+
+ private void Form1_KeyPress(object sender, KeyPressEventArgs e)
+ {
+
+ switch (e.KeyChar.ToString())
+ {
+ case "1":
+ button1.PerformClick();
+ break;
+ case "2":
+ button2.PerformClick();
+ break;
+ case "3":
+ button3.PerformClick();
+ break;
+ case "4":
+ button4.PerformClick();
+ break;
+ case "5":
+ button5.PerformClick();
+ break;
+ case "6":
+ button6.PerformClick();
+ break;
+ case "7":
+ button7.PerformClick();
+ break;
+ case "8":
+ button8.PerformClick();
+ break;
+ case "9":
+ button9.PerformClick();
+ break;
+ case "0":
+ button0.PerformClick();
+ break;
+ case "+":
+ plus.PerformClick();
+ break;
+ case "-":
+ minus.PerformClick();
+ break;
+ case "*":
+ inmultire.PerformClick();
+ break;
+ case "/":
+ impartire.PerformClick();
+ break;
+ case "=":
+ egal.PerformClick();
+ break;
+ case ",":
+ punct.PerformClick();
+ break;
+ default:
+ break;
+ }
+ }
+
+ private void button13_Click(object sender, EventArgs e)
+ {
+ double a;
+ a = Double.Parse(textBox1.Text);
+ a = a * (-1);
+ textBox1.Text = a.ToString();
+ }
+
+ private void punct_Click(object sender, EventArgs e)
+ {
+ ok = false;
+
+ if (!textBox1.Text.Contains(","))
+ {
+ textBox1.Text = textBox1.Text + ",";
+ }
+ }
+
+ private void CloseWindow_Btn_Click(object sender, EventArgs e)
+ {
+ //Closes The App
+ Application.Exit();
+ }
+
+ private void MinimizeWindow_btn_Click(object sender, EventArgs e)
+ {
+ //Minimizes The Window
+ WindowState = FormWindowState.Minimized;
+ }
+
+ private void CloseWindow_Btn_MouseEnter(object sender, EventArgs e)
+ {
+ //Changes The Background Colour To red When Mouse Pointer Enters The Close Button Area
+ CloseWindow_Btn.BackColor = Color.Red;
+ }
+
+ private void CloseWindow_Btn_MouseLeave(object sender, EventArgs e)
+ {
+ //Changes The Background Colour To Transparent When Mouse Pointer Leaves The Close Button Area
+ CloseWindow_Btn.BackColor = Color.Transparent;
+ }
+
+ private void MinimizeWindow_btn_MouseEnter(object sender, EventArgs e)
+ {
+ //Changes The Background Colour To Dark Gray When Mouse Pointer Enters The Minimize Button Area
+ MinimizeWindow_btn.BackColor = Color.DarkGray;
+ }
+
+ private void MinimizeWindow_btn_MouseLeave(object sender, EventArgs e)
+ {
+ //Changes The Background Colour To Transparent When Mouse Pointer Leaves The Minimize Button Area
+ MinimizeWindow_btn.BackColor = Color.Transparent;
+ }
+
+ //Code For Moveing The App With The Mouse Pointer (As I Have Changed The Border Type To None) Starts From Here-
+
+ private void TopPanel_MouseDown(object sender, MouseEventArgs e)
+ {
+ //Enabling The Move
+ drag_app = true;
+ start_point = new Point(e.X, e.Y);
+ }
+
+ private void TopPanel_MouseMove(object sender, MouseEventArgs e)
+ {
+ //For Making The App Move With The Pointer
+ if (drag_app == true)
+ {
+ Point p = PointToScreen(e.Location);
+ Location = new Point(p.X - this.start_point.X, p.Y - this.start_point.Y);
+ }
+ }
+
+ private void TopPanel_MouseUp(object sender, MouseEventArgs e)
+ {
+ //When You Unclick The Mouse, It Will Not Move With The Pointer
+ drag_app = false;
+ }
+
+ //Code For Moving The App Ends Here
+
+ }
+}
diff --git a/Calculator/Calculator/Form1.resx b/Calculator/Calculator/Form1.resx
new file mode 100644
index 0000000..6b1cd44
--- /dev/null
+++ b/Calculator/Calculator/Form1.resx
@@ -0,0 +1,131 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+
+
+ iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
+ dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAC/SURBVFhH7Y5rCsMwDIN7/0vsqOs0UFE9PxIWsx/L
+ B4bWkiMdm81mkMdrnk1T0hmOSdFwfK+kLNAZDtICs+HwZD5PDwvAOBue+SOduxvVYx56Y+8yjbsLNatx
+ BC/I2yncv1GzNY5iA3W8N6ktCSdeiehN6r8vAFaU8MI53pvULr4pYcPx7+0U7m/okT2IyIIyjbsP9EgP
+ Iip/pHPnUj1qgSfzeXpaAOBgpsQsZQHQWWKoANASHTNEZ4nN5q85jhN4LvxnTh1vPgAAAABJRU5ErkJg
+ gg==
+
+
+
\ No newline at end of file
diff --git a/Calculator/Calculator/bin/Debug/Calculator.exe b/Calculator/Calculator/bin/Debug/Calculator.exe
new file mode 100644
index 0000000..d956b1d
Binary files /dev/null and b/Calculator/Calculator/bin/Debug/Calculator.exe differ
diff --git a/Calculator/Calculator/bin/Debug/Calculator.exe.config b/Calculator/Calculator/bin/Debug/Calculator.exe.config
new file mode 100644
index 0000000..00bfd11
--- /dev/null
+++ b/Calculator/Calculator/bin/Debug/Calculator.exe.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Calculator/Calculator/bin/Debug/Calculator.pdb b/Calculator/Calculator/bin/Debug/Calculator.pdb
new file mode 100644
index 0000000..352942d
Binary files /dev/null and b/Calculator/Calculator/bin/Debug/Calculator.pdb differ
diff --git a/Calculator/Calculator/obj/Debug/Calculator.Form1.resources b/Calculator/Calculator/obj/Debug/Calculator.Form1.resources
new file mode 100644
index 0000000..5fd185d
Binary files /dev/null and b/Calculator/Calculator/obj/Debug/Calculator.Form1.resources differ
diff --git a/Calculator/Calculator/obj/Debug/Calculator.Properties.Resources.resources b/Calculator/Calculator/obj/Debug/Calculator.Properties.Resources.resources
new file mode 100644
index 0000000..6c05a97
Binary files /dev/null and b/Calculator/Calculator/obj/Debug/Calculator.Properties.Resources.resources differ
diff --git a/Calculator/Calculator/obj/Debug/Calculator.csproj.CoreCompileInputs.cache b/Calculator/Calculator/obj/Debug/Calculator.csproj.CoreCompileInputs.cache
new file mode 100644
index 0000000..5bd907f
--- /dev/null
+++ b/Calculator/Calculator/obj/Debug/Calculator.csproj.CoreCompileInputs.cache
@@ -0,0 +1 @@
+9b76f2f00264c9fb6c31fca5667d52f637faf02d
diff --git a/Calculator/Calculator/obj/Debug/Calculator.csproj.FileListAbsolute.txt b/Calculator/Calculator/obj/Debug/Calculator.csproj.FileListAbsolute.txt
new file mode 100644
index 0000000..30b09f2
--- /dev/null
+++ b/Calculator/Calculator/obj/Debug/Calculator.csproj.FileListAbsolute.txt
@@ -0,0 +1,20 @@
+D:\programare\Calculator\Calculator\bin\Debug\Calculator.exe.config
+D:\programare\Calculator\Calculator\bin\Debug\Calculator.exe
+D:\programare\Calculator\Calculator\bin\Debug\Calculator.pdb
+D:\programare\Calculator\Calculator\obj\Debug\Calculator.csprojResolveAssemblyReference.cache
+D:\programare\Calculator\Calculator\obj\Debug\Calculator.Form1.resources
+D:\programare\Calculator\Calculator\obj\Debug\Calculator.Properties.Resources.resources
+D:\programare\Calculator\Calculator\obj\Debug\Calculator.csproj.GenerateResource.Cache
+D:\programare\Calculator\Calculator\obj\Debug\Calculator.csproj.CoreCompileInputs.cache
+D:\programare\Calculator\Calculator\obj\Debug\Calculator.exe
+D:\programare\Calculator\Calculator\obj\Debug\Calculator.pdb
+C:\Users\Code Atharv\Downloads\Calculator-master - unziped\Calculator-master\Calculator\Calculator\bin\Debug\Calculator.exe.config
+C:\Users\Code Atharv\Downloads\Calculator-master - unziped\Calculator-master\Calculator\Calculator\bin\Debug\Calculator.exe
+C:\Users\Code Atharv\Downloads\Calculator-master - unziped\Calculator-master\Calculator\Calculator\bin\Debug\Calculator.pdb
+C:\Users\Code Atharv\Downloads\Calculator-master - unziped\Calculator-master\Calculator\Calculator\obj\Debug\Calculator.csprojAssemblyReference.cache
+C:\Users\Code Atharv\Downloads\Calculator-master - unziped\Calculator-master\Calculator\Calculator\obj\Debug\Calculator.Form1.resources
+C:\Users\Code Atharv\Downloads\Calculator-master - unziped\Calculator-master\Calculator\Calculator\obj\Debug\Calculator.Properties.Resources.resources
+C:\Users\Code Atharv\Downloads\Calculator-master - unziped\Calculator-master\Calculator\Calculator\obj\Debug\Calculator.csproj.GenerateResource.cache
+C:\Users\Code Atharv\Downloads\Calculator-master - unziped\Calculator-master\Calculator\Calculator\obj\Debug\Calculator.csproj.CoreCompileInputs.cache
+C:\Users\Code Atharv\Downloads\Calculator-master - unziped\Calculator-master\Calculator\Calculator\obj\Debug\Calculator.exe
+C:\Users\Code Atharv\Downloads\Calculator-master - unziped\Calculator-master\Calculator\Calculator\obj\Debug\Calculator.pdb
diff --git a/Calculator/Calculator/obj/Debug/Calculator.csproj.GenerateResource.cache b/Calculator/Calculator/obj/Debug/Calculator.csproj.GenerateResource.cache
new file mode 100644
index 0000000..e97ea0c
Binary files /dev/null and b/Calculator/Calculator/obj/Debug/Calculator.csproj.GenerateResource.cache differ
diff --git a/Calculator/Calculator/obj/Debug/Calculator.csprojAssemblyReference.cache b/Calculator/Calculator/obj/Debug/Calculator.csprojAssemblyReference.cache
new file mode 100644
index 0000000..21493f5
Binary files /dev/null and b/Calculator/Calculator/obj/Debug/Calculator.csprojAssemblyReference.cache differ
diff --git a/Calculator/Calculator/obj/Debug/Calculator.csprojResolveAssemblyReference.cache b/Calculator/Calculator/obj/Debug/Calculator.csprojResolveAssemblyReference.cache
new file mode 100644
index 0000000..8efad7d
Binary files /dev/null and b/Calculator/Calculator/obj/Debug/Calculator.csprojResolveAssemblyReference.cache differ
diff --git a/Calculator/Calculator/obj/Debug/Calculator.exe b/Calculator/Calculator/obj/Debug/Calculator.exe
new file mode 100644
index 0000000..d956b1d
Binary files /dev/null and b/Calculator/Calculator/obj/Debug/Calculator.exe differ
diff --git a/Calculator/Calculator/obj/Debug/Calculator.pdb b/Calculator/Calculator/obj/Debug/Calculator.pdb
new file mode 100644
index 0000000..352942d
Binary files /dev/null and b/Calculator/Calculator/obj/Debug/Calculator.pdb differ
diff --git a/Calculator/Calculator/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/Calculator/Calculator/obj/Debug/DesignTimeResolveAssemblyReferences.cache
new file mode 100644
index 0000000..9461e52
Binary files /dev/null and b/Calculator/Calculator/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ
diff --git a/Calculator/Calculator/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Calculator/Calculator/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
new file mode 100644
index 0000000..a80218a
Binary files /dev/null and b/Calculator/Calculator/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ