Esempio n. 1
0
        private void RDSale_CheckedChanged(object sender, EventArgs e)
        {
            if (RDSale.Checked)
            {
                TBDeposit.Visible   = false;
                TBRentPrice.Visible = false;
                TBSalePrice.Visible = true;
                label10.Visible     = true;
                label8.Visible      = false;
                label9.Visible      = false;

                lblPriceCost.Visible   = false;
                lblGuestPricee.Visible = false;
            }
            else
            {
                TBSalePrice.Visible = false;
                label10.Visible     = false;
                TBDeposit.Visible   = true;
                TBRentPrice.Visible = true;
                label8.Visible      = true;
                label9.Visible      = true;

                lblPriceCost.Visible   = true;
                lblGuestPricee.Visible = true;

                string guestPrice;
                lblGuestPricee.Visible = true;
                RentHouse rh = new RentHouse(Int32.Parse(NUDRooms.Value.ToString()), 1, "", 1);
                guestPrice        = rh.Price().ToString() + " TL";
                lblPriceCost.Text = guestPrice;
            }
        }
Esempio n. 2
0
        private void NUDRooms_ValueChanged(object sender, EventArgs e)
        {
            string guestPrice = "";

            if (RDRent.Checked)
            {
                lblGuestPricee.Visible = true;
                RentHouse rh = new RentHouse(Int32.Parse(NUDRooms.Value.ToString()), 1, "", 1);
                guestPrice = rh.Price().ToString() + " TL";
            }
            else
            {
                lblGuestPricee.Visible = false;
            }

            lblPriceCost.Text = guestPrice;
        }