private void addToolStripMenuItem_Click(object sender, EventArgs e) { AutomobileDataInput automobileDataInput = new AutomobileDataInput(Dependancies.MiscController, Dependancies.AutomobileController); automobileDataInput.ShowDialog(); }
private void editToolStripMenuItem_Click(object sender, EventArgs e) { var selected = ((CarViewModel)lb_DataBox.SelectedItem).ID; var model = Dependancies.AutomobileController.LoadAutomobile(selected); AutomobileDataInput automobileDataInput = new AutomobileDataInput(Dependancies.MiscController, Dependancies.AutomobileController, model); automobileDataInput.ShowDialog(); }