Ejemplo n.º 1
0
 /// <summary>
 /// 结束监控List的改变,并将当前数据封存
 /// <para>同时清空InsertList,UpdateList,DeleteList</para>
 /// </summary>
 public void EndMoinitChanges()
 {
     IsMonitChanges = false;
     //保存当前数据至[初始数据列表]
     CopyModelList <NotificationModel, NotificationModel>(this, _initialList);
     InsertList.Clear();
     UpdateList.Clear();
     DeleteList.Clear();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 将封存的数据恢复到当前List,结束停止监控List的改变
 /// <para>同时清空InsertList,UpdateList,DeleteList</para>
 /// </summary>
 public void RestoreList()
 {
     IsMonitChanges = false;
     //保存当前数据至[初始数据列表]
     CopyModelList <NotificationModel, NotificationModel>(_initialList, this);
     InsertList.Clear();
     UpdateList.Clear();
     DeleteList.Clear();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// List清空后的处理
 /// </summary>
 private void ItemReset()
 {
     InsertList.Clear();
     UpdateList.Clear();
     DeleteList.Clear();
 }