Exemple #1
0
        private void BeginBatchChecking()
        {
            if (this._batchCheckingVersion == 0)
            {
                this._batchArgs = new CheckItemsChangedEventArgs
                {
                    RoutedEvent = CheckItemsChangedEvent,
                    Source      = this
                };
            }

            this._batchCheckingVersion++;
        }
Exemple #2
0
        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;
            }
        }
Exemple #3
0
        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;
            }
        }
Exemple #4
0
        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();
 }