Example #1
0
        private void buttonToAddVeichle_Click(object sender, EventArgs e)
        {
            string type = textBoxType.Text;
            int    year = Convert.ToInt32(numericUpDownYearOfMake.Value);

            Veichles addVeichle = new Veichles(type, year, modelID, veichlePlaceID);

            db.addVeichle(addVeichle);
            //MessageBox.Show(veichlePlaceID.ToString());
        }