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(); }
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(); }