Esempio n. 1
0
        void ButtonSave_Click(Object sender, EventArgs e)
        {
            if (!ValidateForm())
            {
                return;
            }

            try {
                _mgr.AddCar(_car);
                AddedCar = _car;
                Close();
            } catch (Exception ex) {
                MessageBox.Show(ex.Message, "Save car error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }