示例#1
0
        protected override int sua()
        {
            int obj = 0;

            try
            {
                if (Biencucbo.idnv != "admin")
                {
                    if (gv.GetFocusedRowCellValue("id").ToString() != Biencucbo.idnv)
                    {
                        return(0);
                    }
                }
                Biencucbo.hdong = 1;
                Biencucbo.obj   = 0;
                Biencucbo.ma    = gv.GetFocusedRowCellValue("id").ToString();
                f_themaccount frm = new f_themaccount();
                frm.ShowDialog();
                obj = Biencucbo.obj;
            }
            catch (Exception ex)
            {
            }

            return(obj);
        }
示例#2
0
        protected override int them()
        {
            int obj = 0;

            try
            {
                Biencucbo.hdong = 0;
                Biencucbo.obj   = 0;
                f_themaccount frm = new f_themaccount();
                frm.ShowDialog();
                obj = Biencucbo.obj;
            }
            catch (Exception ex)
            {
            }

            return(obj);
        }