سفارش تبلیغ
صبا ویژن
هر که دوستی ندارد، اندوخته ای ندارد . [امام علی علیه السلام]

علمی ،آموزشی،تحقیقاتی

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Text;

using System.Windows.Forms;

namespace WindowsApplication1

{

public partial class Form1 : Form

{

bool p = true;

int a, b, c;

byte mod;

public Form1()

{

InitializeComponent();

}

private void Form1_Load( sender, EventArgs e)

{

}

private void button1_Click( sender, EventArgs e)

{

if (p)

textBox1.Text += button1.Text;

else

{

textBox1.Text = "";

textBox1.Text += button1.Text;

}

p = true;

}

private void button2_Click( sender, EventArgs e)

{

if (p)

textBox1.Text += button2.Text;

else

{

textBox1.Text = "";

textBox1.Text += button2.Text;

}

p = true;

}

private void button3_Click( sender, EventArgs e)

{

if (p)

textBox1.Text += button3.Text;

else

{

textBox1.Text = "";

textBox1.Text += button3.Text;

}

}

private void button4_Click( sender, EventArgs e)

{

if (p)

textBox1.Text += button4.Text;

else

{

textBox1.Text = "";

textBox1.Text += button4.Text;

}

}

private void button5_Click( sender, EventArgs e)

{

if (p)

textBox1.Text += button5.Text;

else

{

textBox1.Text = "";

textBox1.Text += button5.Text;

}

}

private void button6_Click( sender, EventArgs e)

{

if (p)

textBox1.Text += button6.Text;

else

{

textBox1.Text = "";

textBox1.Text += button6.Text;

}

}

private void button7_Click( sender, EventArgs e)

{

if (p)

textBox1.Text += button7.Text;

else

{

textBox1.Text = "";

textBox1.Text += button7.Text;

}

}

private void button8_Click( sender, EventArgs e)

{

if (p)

textBox1.Text += button8.Text;

else

{

textBox1.Text = "";

textBox1.Text += button8.Text;

}

}

private void button9_Click( sender, EventArgs e)

{

if (p)

textBox1.Text += button9.Text;

else

{

textBox1.Text = "";

textBox1.Text += button9.Text;

}

}

private void button10_Click( sender, EventArgs e)

{

if (p)

textBox1.Text += button10.Text;

else

{

textBox1.Text = "";

textBox1.Text += button10.Text;

}

}

private void button11_Click( sender, EventArgs e)

{

a = Convert.ToInt16(textBox1.Text );

p = false;

mod = 1;

}

private void button12_Click( sender, EventArgs e)

{

b = Convert.ToInt16(textBox1.Text );

switch (mod)

{

case 1:

c = a + b;

break;

}

textBox1.Text = c.ToString();

p = true;

}

private void button13_Click( sender, EventArgs e)

{

double x = Convert.ToDouble(textBox1.Text);

textBox1.Text= Math.Sin(x).ToString();

}

}




مژده فرجی ::: یکشنبه 87/9/3::: ساعت 12:45 عصر

>> بازدیدهای وبلاگ <<
بازدید امروز: 3


بازدید دیروز: 35


کل بازدید :59541
 
 >>اوقات شرعی <<
 
>> درباره خودم<<
مدیر وبلاگ : مژده فرجی[85]
نویسندگان وبلاگ :
سمانه طالبی (@)[0]

مژده فرجی (@)[0]


 
 
>>موسیقی وبلاگ<<
 
>>اشتراک در خبرنامه<<
 
 
>>طراح قالب<<