Exemplo n.º 1
0
        private void btnThemMoi_Click(object sender, EventArgs e)
        {
            frmChiTietPhieuXuat_ThemMoi frm = new frmChiTietPhieuXuat_ThemMoi();

            frm.Closed += delegate
            {
                LoadData();
                this.Refresh();
            };
            frm.ShowDialog();
        }
Exemplo n.º 2
0
        private void btnSua_Click(object sender, EventArgs e)
        {
            string maPX = grvData.GetRowCellValue(grvData.FocusedRowHandle, "ID").ToString();

            if (string.IsNullOrEmpty(maPX))
            {
                MessageBox.Show(string.Format("Vui lòng chọn bản ghi cần sửa!"), CommonConstant.MESSAGE_WARNING, MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }
            frmChiTietPhieuXuat_ThemMoi frm = new frmChiTietPhieuXuat_ThemMoi(2, maPX);

            frm.Closed += delegate
            {
                LoadData();
                this.Refresh();
            };
            frm.ShowDialog();
        }