private void InitEdit() { TextBoxMake.Text = carOld.GetMake(); TextBoxModel.Text = carOld.GetModel(); TextBoxYear.Text = carOld.GetYear().ToString(); TextBoxEngine.Text = carOld.GetEngine(); TextBoxVehicleID.Text = carOld.GetVehicleID(); TextBoxPlate.Text = carOld.GetPlate(); }
private void ListViewJob_DoubleClick(object sender, EventArgs e) { ListView.SelectedIndexCollection indices = ListViewJob.SelectedIndices; JobModel job = jobs[indices[0]]; string title = car.GetMake() + " " + car.GetModel() + " "; JobOverview jobOverview = new JobOverview(job, title); jobOverview.ShowDialog(); }
public Jobs(CarModel car, string carID) { InitializeComponent(); this.car = car; this.carID = Int32.Parse(carID.Replace("Index:", "")); page = 1; shownItems = 20; jobsController = new JobsController(); Text = car.GetMake() + " " + car.GetModel() + " Jobs - CI Garage Manager"; }