private void btnSave_Click(object sender, EventArgs e) { if (!String.IsNullOrEmpty(txtSeatNumber.Text)) { frmPassengerInformation frm = new frmPassengerInformation(SelectedBusId, SeatNumber, Pay); frm.Show(); } else { MessageBox.Show("Koltuk seçmediniz!!"); } }
public frmMain(int selectedBusId, byte seatNumber, decimal pay) { InitializeComponent(); frmPassengerInformation frm = new frmPassengerInformation(SelectedBusId, seatNumber, pay); }