Пример #1
0
 /// <summary>
 /// 接受调用此方法之前UIModel的变化
 /// </summary>
 protected virtual void AcceptUIModelChanges()
 {
     NewUIModel = this.DetailDS;
     if (OrginalUIModel == null)
     {
         OrginalUIModel = Activator.CreateInstance <UIModelType>();
     }
     if (DetailDSCopy == null)
     {
         DetailDSCopy = Activator.CreateInstance <UIModelType>();
     }
     _bll.CopyModelFully(this.DetailDS, OrginalUIModel, this.DetailDSCopy);
 }