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); } }
private void btnAddVehicle_Click(object sender, EventArgs e) { CreateVehicleForm vInstanceForm = new CreateVehicleForm(); vInstanceForm.ShowDialog(); }