コード例 #1
0
 private void cbbflavors_SelectedIndexChanged(object sender, EventArgs e)
 {
     lblSummary.Text     = StoreMain.getUsername() + " selected:  " + cbbflavors.Text;
     cho_flavor          = cbbflavors.Text;
     price               = price_list[cbbflavors.SelectedIndex];
     subtotal            = price * Int32.Parse(txbQty.Text);
     lblTotalNumber.Text = Convert.ToString(subtotal);
 }
コード例 #2
0
 public chocolates()
 {
     InitializeComponent();
     lblSummary.Text = StoreMain.getUsername() + " selected:  nothing";
     txbQty.Text     = "1";
 }