Beispiel #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     try
     {
         string quantity = msh.GetNrRentedItems(cbProductsLoaned.SelectedItem.ToString()).ToString();
         label8.Text = quantity;
         int product_price    = msh.GetRentItem_Price(cbProductsLoaned.SelectedItem.ToString());
         int prdouct_quantity = int.Parse(label8.Text);
         label9.Text = (prdouct_quantity * product_price).ToString();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }