Exemplo n.º 1
0
        private void btnThem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (frm == null || frm.IsDisposed)
            {
                frm = new frmThemLoaiHangHoa();
            }
            frm.Show();

            PassIDform1 sendIDObjectfrm1 = new PassIDform1(frm.funObjectB);

            sendIDObjectfrm1(this);
        }
Exemplo n.º 2
0
        private void btnSua_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var i = gridView1.FocusedRowHandle;

            Data._edit   = true;
            Data._str_id = gridView1.GetRowCellValue(i, "maloai").ToString();
            if (frm == null || frm.IsDisposed)
            {
                frm = new frmThemLoaiHangHoa();
            }
            frm.Show();

            PassIDform1 sendIDObjectfrm1 = new PassIDform1(frm.funObjectB);

            sendIDObjectfrm1(this);
        }