private void toolStripMenuItem_Them_Click(object sender, EventArgs e) { FormEditLoaiVe form = new FormEditLoaiVe(); form.ShowDialog(); this.gridControl.DataSource = this.loaiVeBUS.GetAll(); }
/// <summary> /// Mở form thêm loại vé /// </summary> private void barButtonItem_ThemLoaiVe_ItemClick(object sender, ItemClickEventArgs e) { FormEditLoaiVe form = new FormEditLoaiVe(); if (form.DialogResult != DialogResult.Abort) { form.ShowDialog(); } }
private void gridView_DoubleClick(object sender, EventArgs e) { if (this.gridView.FocusedRowHandle >= 0) { string maLoaiVe = this.gridView.GetDataRow(this.gridView.FocusedRowHandle)["MALOAIVE"].ToString(); FormEditLoaiVe form = new FormEditLoaiVe(maLoaiVe); if (form.DialogResult != DialogResult.Abort) { form.ShowDialog(); this.gridControl.DataSource = this.loaiVeBUS.GetAll(); } } }