Esempio n. 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            int quantity = int.Parse(SPQtyTextBox.Text);
            Job job      = new Job(5, "Maintenance", "Washing Car", DateTime.Now, vehicle, quantity, 300, 1);

            JobCL.Insert(job);
            OilCL.Update();
            this.Close();
        }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            int quantity = int.Parse(OilQtyTextBox.Text);
            Job job      = new Job(4, "Oiling", "Oiling Car", DateTime.Now, vehicle, 450, quantity, 3);

            JobCL.Insert(job);
            OilCL.Update();
            this.Close();
        }
Esempio n. 3
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. 4
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();
        }