Exemplo n.º 1
0
        public ReisForm(OutdoorParadise db)
        {
            InitializeComponent();
            this.context = db;
            Travel_product_details_lbl.Hide();

            start_date.Value = DateTime.Now;
            end_date.Value   = start_date.Value.AddDays(1);
            HideElements();

            Get_reis_type();
        }
Exemplo n.º 2
0
        private void reis_type_cb_SelectedIndexChanged(object sender, EventArgs e)
        {
            HideElements();
            Travel_product_details_lbl.Text = "";
            Travel_product_details_lbl.Text = "Duration          Min_Capacity          Max_Capacity         Children \n\n";
            string gekozen_loc           = reis_type_cb.SelectedItem.ToString();
            List <Travel_product> target = context.Travel_product.Where(s => s.Desciption.Equals(gekozen_loc)).ToList();

            foreach (Travel_product t in target)
            {
                Travel_product_details_lbl.Text += t.Length + " days                " + t.Min_capacity + "                                " + t.Max_capacity + "                     " + t.Kids_Allowed;
                this.Trav_prod_ID = t.Trav_prod_ID;
                this.min_cap      = t.Min_capacity;
                this.max_cap      = t.Max_capacity;
                this.lengte       = t.Length;
            }
            Travel_product_details_lbl.Show();
            start_d_lbl.Show();
            start_date.Show();


            gekozen_klanten.Clear();
        }