コード例 #1
0
        private void toolStripMenuItem_Them_Click(object sender, EventArgs e)
        {
            FormEditLoaiVe form = new FormEditLoaiVe();

            form.ShowDialog();
            this.gridControl.DataSource = this.loaiVeBUS.GetAll();
        }
コード例 #2
0
        /// <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();
            }
        }
コード例 #3
0
        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();
                }
            }
        }