Exemple #1
0
        /// <summary>
        ///     清理资源
        /// </summary>
        protected override void OnDispose()
        {
            _status.Arrest = _oldArrest;
            _currentScope  = _preScope;
            //if (_endRaiseEvent)
            //{

            //}
        }
Exemple #2
0
 /// <summary>
 ///     构建编辑范围
 /// </summary>
 /// <param name="status">锁定的编辑对象</param>
 /// <param name="arrestMode">编辑阻止模式</param>
 /// <param name="endRaiseEvent">锁定完成后是否发出属性修改事件(已取消功能)</param>
 public EditScope(IndexEditStatus status, EditArrestMode arrestMode = EditArrestMode.All, bool endRaiseEvent = false)
 {
     _preScope      = _currentScope;
     _currentScope  = this;
     _status        = status;
     _oldArrest     = _status.Arrest;
     _status.Arrest = arrestMode;
     _endRaiseEvent = endRaiseEvent;
 }