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 WindowsFormsApplication2
- {
- public partial class formBRZPackage : Form
- {
- public formBRZPackage()
- {
- InitializeComponent();
- }
- private void radioBRZStandard_CheckedChanged_1(object sender, EventArgs e)
- {
- if (radioBRZStandard.Checked == true)
- {
- Variables.ModelSelected = "Standard";
- txtboxAdditionalCost.Text = Variables.additionalCostBRZStandard.ToString("C");
- Variables.totalCurrentConfig = Variables.priceBRZ;
- txtboxTotalCurrentCost.Text = Variables.priceBRZ.ToString("C");
- }
- }
- private void radioBRZPremium_CheckedChanged_1(object sender, EventArgs e)
- {
- if (radioBRZPremium.Checked == true)
- {
- Variables.ModelSelected = "Premium";
- txtboxAdditionalCost.Text = Variables.additionalCostBRZPremium.ToString("C");
- Variables.totalCurrentConfig = Variables.priceBRZ + Variables.additionalCostBRZPremium;
- txtboxTotalCurrentCost.Text = Variables.totalCurrentConfig.ToString("C");
- }
- }
- private void radioBRZSport_CheckedChanged_1(object sender, EventArgs e)
- {
- if (radioBRZSport.Checked == true)
- {
- Variables.ModelSelected = "Sport";
- txtboxAdditionalCost.Text = Variables.additionalCostBRZSport.ToString("C");
- Variables.totalCurrentConfig = Variables.priceBRZ + Variables.additionalCostBRZSport;
- txtboxTotalCurrentCost.Text = Variables.totalCurrentConfig.ToString("C");
- }
- }
- private void radioBRZLimited_CheckedChanged_1(object sender, EventArgs e)
- {
- if (radioBRZLimited.Checked == true)
- {
- Variables.ModelSelected = "Limited";
- txtboxAdditionalCost.Text = Variables.additionalCostBRZLimited.ToString("C");
- Variables.totalCurrentConfig = Variables.priceBRZ + Variables.additionalCostBRZLimited;
- txtboxTotalCurrentCost.Text = Variables.totalCurrentConfig.ToString("C");
- }
- }
- private void txtboxAdditionalCost_TextChanged(object sender, EventArgs e)
- {
- }
- private void LbladditionalCost_Click(object sender, EventArgs e)
- {
- }
- private void btn_SelectColor_Click(object sender, EventArgs e)
- {
- if (Variables.ModelSelected != "")
- {
- this.Hide();//Hide the 'current' form, i.e frm_form1
- //show another form ( frm_form2 )
- formColorPicker2 frm = new formColorPicker2();
- frm.ShowDialog();
- //Close the form.(frm_form1)
- this.Close();
- }
- else
- {
- MessageBox.Show("Please make a selection", "My Application", MessageBoxButtons.OK, MessageBoxIcon.Error);
- }
- }
- private void btn_Back_Click_1(object sender, EventArgs e)
- {
- this.Hide();
- formMain frm = new formMain();
- frm.ShowDialog();
- this.Close();
- }
- private void formBRZPackage_Load(object sender, EventArgs e)
- {
- }
- private void label1_Click(object sender, EventArgs e)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement