Beispiel #1
0
        private void btnThemMoi_Click(object sender, EventArgs e)
        {
            frmNhaCungCap_ThemMoi frm = new frmNhaCungCap_ThemMoi();

            frm.Closed += delegate
            {
                LoadData();
                this.Refresh();
            };
            frm.ShowDialog();
        }
Beispiel #2
0
        private void btnSua_Click(object sender, EventArgs e)
        {
            string maNCC = grvData.GetRowCellValue(grvData.FocusedRowHandle, "MaNCC").ToString();

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

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