Exemplo n.º 1
0
        private void btnHipop_Click(object sender, EventArgs e)         // Hip Hop music type selection
        {
            Hip_Hop f1 = new Hip_Hop();

            f1.ShowDialog();

            txtHPrice.Text = f1.Price;                                  // Converts price to a non-integer number
            double HPrice = Convert.ToDouble(this.txtHPrice.Text);      // Converts the price of hip hop album total to double data type

            Total        += HPrice;                                     // Adds the price of hip hop album and assigns the results to the total
            txtPrice.Text = Convert.ToString(Total);                    // Converts total price to string
        }
        private void btnHipop_Click(object sender, EventArgs e)
        {
            Hip_Hop f1 = new Hip_Hop();

            f1.ShowDialog();

            txtHPrice.Text = f1.Price;
            double HPrice = Convert.ToDouble(this.txtHPrice.Text);

            Total        += HPrice;
            txtPrice.Text = Convert.ToString(Total);
        }