Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.72 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10.  
  11. namespace WindowsFormsApplication2
  12. {
  13.     public partial class formBRZPackage : Form
  14.     {
  15.         public formBRZPackage()
  16.         {
  17.             InitializeComponent();
  18.         }
  19.  
  20.  
  21.  
  22.  
  23.         private void radioBRZStandard_CheckedChanged_1(object sender, EventArgs e)
  24.         {
  25.  
  26.             if (radioBRZStandard.Checked == true)
  27.             {
  28.                 Variables.ModelSelected = "Standard";
  29.                 txtboxAdditionalCost.Text = Variables.additionalCostBRZStandard.ToString("C");
  30.                 Variables.totalCurrentConfig = Variables.priceBRZ;
  31.                 txtboxTotalCurrentCost.Text = Variables.priceBRZ.ToString("C");
  32.  
  33.             }
  34.         }
  35.  
  36.         private void radioBRZPremium_CheckedChanged_1(object sender, EventArgs e)
  37.         {
  38.             if (radioBRZPremium.Checked == true)
  39.             {
  40.                 Variables.ModelSelected = "Premium";
  41.                 txtboxAdditionalCost.Text = Variables.additionalCostBRZPremium.ToString("C");
  42.                 Variables.totalCurrentConfig = Variables.priceBRZ + Variables.additionalCostBRZPremium;
  43.                 txtboxTotalCurrentCost.Text = Variables.totalCurrentConfig.ToString("C");
  44.  
  45.             }
  46.         }
  47.  
  48.         private void radioBRZSport_CheckedChanged_1(object sender, EventArgs e)
  49.         {
  50.             if (radioBRZSport.Checked == true)
  51.             {
  52.                 Variables.ModelSelected = "Sport";
  53.                 txtboxAdditionalCost.Text = Variables.additionalCostBRZSport.ToString("C");
  54.                 Variables.totalCurrentConfig = Variables.priceBRZ + Variables.additionalCostBRZSport;
  55.                 txtboxTotalCurrentCost.Text = Variables.totalCurrentConfig.ToString("C");
  56.  
  57.             }
  58.         }
  59.  
  60.         private void radioBRZLimited_CheckedChanged_1(object sender, EventArgs e)
  61.         {
  62.             if (radioBRZLimited.Checked == true)
  63.             {
  64.                 Variables.ModelSelected = "Limited";
  65.                 txtboxAdditionalCost.Text = Variables.additionalCostBRZLimited.ToString("C");
  66.                 Variables.totalCurrentConfig = Variables.priceBRZ + Variables.additionalCostBRZLimited;
  67.                 txtboxTotalCurrentCost.Text = Variables.totalCurrentConfig.ToString("C");
  68.             }
  69.         }
  70.  
  71.         private void txtboxAdditionalCost_TextChanged(object sender, EventArgs e)
  72.         {
  73.  
  74.         }
  75.  
  76.         private void LbladditionalCost_Click(object sender, EventArgs e)
  77.         {
  78.  
  79.         }
  80.  
  81.         private void btn_SelectColor_Click(object sender, EventArgs e)
  82.         {
  83.             if (Variables.ModelSelected != "")
  84.             {
  85.  
  86.                 this.Hide();//Hide the 'current' form, i.e frm_form1
  87.                             //show another form ( frm_form2 )  
  88.                 formColorPicker2 frm = new formColorPicker2();
  89.                 frm.ShowDialog();
  90.                 //Close the form.(frm_form1)
  91.                 this.Close();
  92.             }
  93.             else
  94.             {
  95.                 MessageBox.Show("Please make a selection", "My Application", MessageBoxButtons.OK, MessageBoxIcon.Error);
  96.             }
  97.         }
  98.  
  99.         private void btn_Back_Click_1(object sender, EventArgs e)
  100.         {
  101.             this.Hide();
  102.  
  103.             formMain frm = new formMain();
  104.             frm.ShowDialog();
  105.             this.Close();
  106.         }
  107.  
  108.         private void formBRZPackage_Load(object sender, EventArgs e)
  109.         {
  110.  
  111.         }
  112.  
  113.         private void label1_Click(object sender, EventArgs e)
  114.         {
  115.  
  116.         }
  117.  
  118.        
  119.  
  120.        
  121.     }
  122. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement