private void BeginBatchChecking() { if (this._batchCheckingVersion == 0) { this._batchArgs = new CheckItemsChangedEventArgs { RoutedEvent = CheckItemsChangedEvent, Source = this }; } this._batchCheckingVersion++; }
private void EndBatchChecking() { this._batchCheckingVersion--; if (this._batchCheckingVersion == 0) { if (this._batchArgs.NewItems.Count > 0 || this._batchArgs.OldItems.Count > 0) { this.RaiseEvent(this._batchArgs); } this._batchArgs = null; } }
private void EndBatchChecking() { this._batchCheckingVersion--; if (this._batchCheckingVersion == 0) { if (this._batchArgs.NewItems.Count > 0 || this._batchArgs.OldItems.Count > 0) { this.RaiseEvent(this._batchArgs); } this._batchArgs = null; } }
private void BeginBatchChecking() { if (this._batchCheckingVersion == 0) { this._batchArgs = new CheckItemsChangedEventArgs { RoutedEvent = CheckItemsChangedEvent, Source = this }; } this._batchCheckingVersion++; }
/// <summary> /// 在功能列表被选择时,更改底层的数据列表。 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void _opertaionsView_CheckItemsChanged(object sender, CheckItemsChangedEventArgs e) { this.SyncUnderlyModel(); }