Ejemplo n.º 1
0
        private void cmdEdit_Click(object sender, EventArgs e)
        {
            var frm = new FrmThemMoiKhachHang();

            frm.txtIdKhachHang.Text = Utility.sDbnull(grdkhachhang.GetValue(KskDmucKhachhang.Columns.IdKhachHang), -1);
            frm.MEnAction           = action.Update;
            frm.dt = dtDmucKhachHang;
            frm.ShowDialog();
        }
Ejemplo n.º 2
0
        private void cmdNew_Click(object sender, EventArgs e)
        {
            var frm = new FrmThemMoiKhachHang();

            frm.txtIdKhachHang.Text = @"-1";
            frm.MEnAction           = action.Insert;
            frm.dt = dtDmucKhachHang;
            frm.ShowDialog();
        }