Exemplo n.º 1
0
        public override void gGrid1_DoubleClick(object sender, EventArgs e)
        {
            SM_POCKET pocketobj = this.gGrid1.GetCurSelect <SM_POCKET>();

            if (pocketobj == null)
            {
                return;
            }
            SM_POCKETLOOK oFrm = new SM_POCKETLOOK();

            oFrm.CurEditStatus = EditorStatus.Look;
            oFrm.SetData(pocketobj);
            oFrm.ShowDialog();
            this.RefreshData();
        }
Exemplo n.º 2
0
        private void gGrid1_DoubleClick(object sender, EventArgs e)
        {
            DataRow drow = this.GetCurSelect();

            if (drow == null)
            {
                return;
            }
            SM_POCKETLOOK oFrm = new SM_POCKETLOOK();
            int           id   = G.Core.GConvert.ToInt(drow["ID"]);
            var           data = this.Logic.IFindObject(G.AppInfo.GGlobal.User, id);

            oFrm.CurEditStatus = EditorStatus.Look;
            oFrm.SetData(data);
            oFrm.ShowDialog();
            this.RefreshData();
        }