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

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

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