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

            automobileDataInput.ShowDialog();
        }
예제 #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();
        }