Ejemplo n.º 1
0
 private void Rent_Click(object sender, EventArgs e)
 {
     if (rentForm == null)
     {
         rentForm = new RentForm(_unitOfWork);
     }
     rentForm.ShowDialog();
 }
Ejemplo n.º 2
0
        private void carbox_button_Click(object sender, EventArgs e)
        {
            string price_text;

            if (carbox_promotion.Text != "")
            {
                double price = double.Parse(carbox_price.Text.Replace("PLN/24H", ""));
                price      = price * 0.8;
                price_text = price + "PLN";
            }
            else
            {
                price_text = carbox_price.Text.Replace("PLN/24H", "PLN");
            }
            Form rentForm = new RentForm(carbox_name.Text, price_text);

            rentForm.Show();
        }