public Form2(OutdoorParadise context) { InitializeComponent(); comboBox1.Items.Add("ID"); emp_txt.Hide(); this.context = context; }
public static void Main(string[] args) { using (OutdoorParadise context = new OutdoorParadise()) { //int input = Int32.Parse(Console.ReadLine()); //List<Employees> employees = context.Employees.ToList(); //Console.WriteLine(employees.Find(i => i.ID == input).Last_Name); //List<Training> trainingen = context.Training.ToList(); //List<Bonus> bonussen = context.Bonus.ToList(); //List<Training> finalT = trainingen.Where(eid => eid.Emp_ID == input).ToList(); //List<Bonus> finalB = bonussen.Where(eid => eid.Emp_ID == input).ToList(); //foreach (var t in finalT) //{ // Console.WriteLine(t.ToString()); //} //foreach (var b in finalB) //{ // Console.WriteLine(b.ToString()); //} // List<Customer> cust = context.Customer.Where(s => s.First_Name != null).ToList(); // Console.WriteLine("Customers: "); // foreach (var c in cust) // { // Console.WriteLine(c.First_Name + " " + c.Last_Name); // } // Console.WriteLine("=============== "); // Console.WriteLine("============ "); // List<Employees> emps = context.Employees.ToList(); // Console.WriteLine("Employees: "); // foreach (var e in emps) // { // Console.WriteLine(e.First_Name + " " + e.Last_Name); // } //} //Console.ReadKey(); Application.Run(new Form1(context)); Console.ReadKey(); } }
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(); }
public ConfirmationForm(ReisForm f, OutdoorParadise context, List <string> gekozen_klanten, List <int> ids, Travel_planned travel_Planned, List <string> gekozen_ecur, List <int> excu_ids, double prijss) { InitializeComponent(); this.gekozen_klanten.Clear(); this.ids.Clear(); this.form = f; this.context = context; this.gekozen_klanten.AddRange(gekozen_klanten); this.ids.AddRange(ids); this.travel = travel_Planned; this.gekozen_ecur = gekozen_ecur; this.excu_ids.AddRange(excu_ids); price_lbl.Text = prijss + "$ Per person!"; tprice_lbl.Text = (prijss * gekozen_klanten.Count) + "$"; displaydetails(); }
public Form1(OutdoorParadise context) { InitializeComponent(); this.context = context; }