- เข้าสู่ระบบล่าสุด
- 2012-5-14
- เวลาออนไลน์
- 81 ชั่วโมง
- จิตพิศัย
- 39
- Money
- 144
- สมัครสมาชิกเมื่อ
- 2009-12-20
- สิทธิ์ในการอ่าน
- 200
- โพสต์
- 42
- กระทู้
- 42
- สำคัญ
- 0
- เครดิต
- 39
- UID
- 1
  
- Money
- 144
- จิตพิศัย
- 39
- สมัครสมาชิกเมื่อ
- 2009-12-20
- เครดิต
- 39
- โพสต์
- 42
|
- private void Form1_Load(object sender, EventArgs e)
- {
- label3.Text = "";
- label5.Text = "";
- }
- private void button3_Click(object sender, EventArgs e)
- {
- Application.Exit();
- }
- private void button2_Click(object sender, EventArgs e)
- {
- textBox1.Text = "";
- radioButton1.Checked = false;
- radioButton2.Checked = false;
- radioButton3.Checked = false;
- label3.Text = "";
- label5.Text = "";
- textBox1.Focus();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- double Price, vat=0,net_price=0;
- Price = double.Parse(textBox1.Text);
- if (radioButton1.Checked == true)
- {
- vat= Price * 0.03;
- }
- if (radioButton2.Checked == true)
- {
- vat = Price * 0.07;
- }
- if (radioButton3.Checked == true)
- {
- vat = Price * 0.1;
- }
- net_price = Price + vat;
- label3.Text = vat.ToString() + " บาท";
- label5.Text = net_price.ToString() + " บาท";
- }
คัดลอกไปที่คลิปบอร์ด ผลรัน |
|