Example #1
0
        private void addToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AutomobileDataInput automobileDataInput = new AutomobileDataInput(Dependancies.MiscController,
                                                                              Dependancies.AutomobileController);

            automobileDataInput.ShowDialog();
        }
Example #2
0
        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();
        }