Example #1
0
        private void btnPop_Click(object sender, EventArgs e)           // Pop music type selection
        {
            Pop f2 = new Pop();

            f2.ShowDialog();

            txtPopPrice.Text = f2.PopPrice;                             // Converts price to a non-integer number
            double PPrice = Convert.ToDouble(this.txtPopPrice.Text);    // Converts the price of pop album total to double data type

            Total        += PPrice;                                     // Adds the price of pop album and assigns the results to the total
            txtPrice.Text = Convert.ToString(Total);                    // Converts total price to string
        }
        private void btnPop_Click(object sender, EventArgs e)
        {
            Pop f2 = new Pop();

            f2.ShowDialog();

            txtPopPrice.Text = f2.PopPrice;
            double PPrice = Convert.ToDouble(this.txtPopPrice.Text);

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