Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 HOA6
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void Button1_Click(object sender, EventArgs e)
- {
- if (checkBox1.Checked)
- {
- Class1.discount_rate = 10;
- }
- else
- {
- Class1.discount_rate = 0;
- }
- Hide();
- Form2 r = new Form2();
- r.Show();
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- string output = "";
- output += "Gen Ad \t\t x" + Class1.gen_ad + "\t Php " + (100*Class1.gen_ad)+ "\r\nLower Box \t x" + Class1.lower_box + "\t Php " + (200 * Class1.lower_box) + "\r\nPatron \t\t x" + Class1.patron + "\t Php " + (350*Class1.patron) + "\r\nTotal Bill: Php " + Class1.total_bill + "\r\nSchool Discount: " + Class1.discount_rate + "%\r\nFinal Bill: Php " + Class1.total_bill;
- textBox1.Text = output;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement