Exemple #1
0
        //show customer history page
        private void bunifuThinButton23_Click(object sender, EventArgs e)
        {
            jobHistory jh = new jobHistory(false, jobRef, this);

            jh.Show();
            this.Hide();
        }
        //show history of vehicle
        private void button4_Click(object sender, EventArgs e)
        {
            jobHistory jh = new jobHistory(true, jobRef, this);

            jh.Show();
            this.Hide();
        }
        //search job by vehicle button
        private void bunifuThinButton214_Click(object sender, EventArgs e)
        {
            string vehicleID = comboBoxJobs.SelectedItem.ToString();

            using (sunilGarageDBEntities db = new sunilGarageDBEntities())
            {
                job        j  = db.jobs.Where(x => x.vehicle == vehicleID && x.status == state.complete.ToString()).FirstOrDefault();
                jobHistory jh = new jobHistory(true, j);
                jh.Show();
            }
        }