Exemplo n.º 1
0
        protected override int them()
        {
            int obj = 0;

            try
            {
                Biencucbo.obj   = 0;
                Biencucbo.hdong = 0;
                f_themphongban frm = new f_themphongban();
                frm.ShowDialog();
                obj = Biencucbo.obj;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
            return(obj);
        }
Exemplo n.º 2
0
        protected override int sua()
        {
            int obj = 0;

            try
            {
                Biencucbo.obj   = 0;
                Biencucbo.hdong = 1;
                Biencucbo.ma    = gv.GetFocusedRowCellValue("key").ToString();
                f_themphongban frm = new f_themphongban();
                frm.ShowDialog();
                obj = Biencucbo.obj;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }

            return(obj);
        }