示例#1
0
        private void btnTradeVehicleAdd_Click(object sender, EventArgs e)
        {
            CreateVehicleForm sInstanceForm = new CreateVehicleForm();

            sInstanceForm.ShowDialog();

            string msg = sInstance.GetTradeVehicle(WinFormShared.vehicle);

            if (msg == "Success.")
            {
                tbShowTradeInVehicle.Text = WinFormShared.vehicle.View;
            }
            else
            {
                MessageBox.Show(msg, "Add Trade-in Vehicle", MessageBoxButtons.OK);
            }
        }
示例#2
0
        private void btnAddVehicle_Click(object sender, EventArgs e)
        {
            CreateVehicleForm vInstanceForm = new CreateVehicleForm();

            vInstanceForm.ShowDialog();
        }