public frmGhe(DataTable dt_ChuyenXe, frmDatVe frm) { InitializeComponent(); this.frmParent = frm; LoadComboboxTimKiemChuyenXe(dt_ChuyenXe); }
//Open another form with ID public void openFormById(int id) { switch (id) { case 1: { frmDatVe frm = new frmDatVe(this); frm.Show(); this.Hide(); } break; case 2: { frmKhachhang frm = new frmKhachhang(this); frm.Show(); this.Hide(); } break; case 3: { frmChuyenXe frm = new frmChuyenXe(this); frm.Show(); this.Hide(); } break; case 4: { frmTuyenXe frm = new frmTuyenXe(this); frm.Show(); this.Hide(); } break; case 5: { btn_slider_Click(this, new EventArgs { }); } break; default: { } break; } }