private void btnBanVe2_Click(object sender, EventArgs e) { string maCB = getMaCB(dataGridView1); BanVe formBanVe = new BanVe(maCB); formBanVe.ShowDialog(); }
private void ptbBanVe_Click(object sender, EventArgs e) { BanVe formBanVe = new BanVe(getMaCB(gridViewLichCB)); formBanVe.ShowDialog(); ptbBanVe.Enabled = false; }
private void bánVéToolStripMenuItem_Click(object sender, EventArgs e) { if (tabControl1.SelectedTab == tabControl1.TabPages[0]) { BanVe formBanVe = new BanVe(getMaCB(gridViewLichCB)); formBanVe.ShowDialog(); } else if (tabControl1.SelectedTab == tabControl1.TabPages[1]) { BanVe formBanVe = new BanVe(getMaCB(gridViewTraCuu)); formBanVe.ShowDialog(); } }
private void ptbBanVe2_Click(object sender, EventArgs e) { BanVe formBanVe = new BanVe(getMaCB(gridViewTraCuu)); formBanVe.ShowDialog(); }