Esempio n. 1
0
 private void OilingRadio_CheckedChanged(object sender, EventArgs e)
 {
     OilingPanel.Visible = true;
     olist = new List <Oil>();
     olist = OilCL.GetAll();
     foreach (Oil oil in olist)
     {
         this.OilingComboBox.Items.Add(oil.Title);
     }
 }
Esempio n. 2
0
        static void Main(string[] args)
        {
            //List<Vehicle> vehicles=VehicleCL.GetALL();
            //foreach (Vehicle veh in vehicles)
            //    Console.WriteLine(veh);
            //Vehicle vehicle = VehicleCL.Get();
            //Console.WriteLine(vehicle);
            //VehicleCL.Insert();
            //VehicleCL.Update();
            //VehicleCL.Delete();

            //List<Bill> bills = BillCL.GetAll();
            //foreach (Bill bill in bills)
            //    Console.WriteLine(bill);
            //Bill bill = BillCL.Get();
            //Console.WriteLine(bill);
            //BillCL.Insert();
            //BillCL.Update();
            //BillCL.Delete();

            //List<Job> jobs = JobCL.GetAll();
            //foreach (Job job in jobs)
            //   Console.WriteLine(job);
            //Job job = JobCL.Get();
            //Console.WriteLine(job);
            //JobCL.Insert();
            //JobCL.Update();
            //JobCL.Delete();

            //List<SparePart> spareparts = SparePartCL.GetAll();
            //foreach (SparePart sp in spareparts)
            //  Console.WriteLine(sp);
            //SparePart sparepart = SparePartCL.Get();
            //Console.WriteLine(sparepart);
            //SparePartCL.Insert();
            //SparePartCL.Update();
            //SparePartCL.Delete();

            List <Oil> oils = OilCL.GetAll();

            foreach (Oil oil in oils)
            {
                Console.WriteLine(oil);
            }
            //SparePart sparepart = SparePartCL.Get();
            //Console.WriteLine(sparepart);
            //SparePartCL.Insert();
            //SparePartCL.Update();
            //SparePartCL.Delete();
        }