Exemplo n.º 1
0
        private void toolStripMenuItem_Them_Click(object sender, EventArgs e)
        {
            FormEditDotPhatHanh form = new FormEditDotPhatHanh();

            form.ShowDialog();
            this.gridControl.DataSource = this.dotPhatHanhBUS.GetAll();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Mở form thêm đợt phát hành
        /// </summary>
        private void barButtonItem_ThemDotPhatHanh_ItemClick(object sender, ItemClickEventArgs e)
        {
            FormEditDotPhatHanh form = new FormEditDotPhatHanh();

            if (form.DialogResult != DialogResult.Abort)
            {
                form.ShowDialog();
            }
        }
Exemplo n.º 3
0
        private void gridView_DoubleClick(object sender, EventArgs e)
        {
            if (this.gridView.FocusedRowHandle >= 0)
            {
                string maDotPhatHanh = this.gridView.GetDataRow(this.gridView.FocusedRowHandle)["MADOTPHATHANH"].ToString();

                FormEditDotPhatHanh form = new FormEditDotPhatHanh(maDotPhatHanh);
                if (form.DialogResult != DialogResult.Abort)
                {
                    form.ShowDialog();
                    this.gridControl.DataSource = this.dotPhatHanhBUS.GetAll();
                }
            }
        }