Esempio n. 1
0
        private void gridView_DoubleClick(object sender, EventArgs e)
        {
            PSP_ImgInfo     obj = FocusedObject;
            frmImgInfoInput f   = new frmImgInfoInput();

            f.StrName   = obj.Name;
            f.StrRemark = obj.Remark;
            if (f.ShowDialog() == DialogResult.OK)
            {
                obj        = Services.BaseService.GetOneByKey <PSP_ImgInfo>(obj.UID);
                obj.Name   = f.StrName;
                obj.Remark = f.StrRemark;
                Services.BaseService.Update <PSP_ImgInfo>(obj);
                RefreshData(uid);
            }
        }
Esempio n. 2
0
 private void gridView_DoubleClick(object sender, EventArgs e)
 {
     PSP_ImgInfo obj = FocusedObject;
     frmImgInfoInput f = new frmImgInfoInput();
     f.StrName = obj.Name;
     f.StrRemark = obj.Remark;
     if (f.ShowDialog() == DialogResult.OK)
     {
         obj = Services.BaseService.GetOneByKey<PSP_ImgInfo>(obj.UID);
         obj.Name = f.StrName;
         obj.Remark = f.StrRemark;
         Services.BaseService.Update<PSP_ImgInfo>(obj);
         RefreshData(uid);
     }
 }