Ejemplo n.º 1
0
 public void MergeFrom(BubbleChangeEventArgs other)
 {
     foreach (var otherOperation in other.Operations)
     {
         AddOperation(otherOperation);
     }
 }
Ejemplo n.º 2
0
        protected override void EndUpdateInternal()
        {
            base.EndUpdateInternal();

            if (mBubbleChangeDuringUpdate != null)
            {
                OnBubbleChange(this, mBubbleChangeDuringUpdate);
                mBubbleChangeDuringUpdate = null;
            }
        }
Ejemplo n.º 3
0
 protected virtual void OnBubbleChange(object sender, BubbleChangeEventArgs e)
 {
     if (IsUpdating)
     {
         mBubbleChangeDuringUpdate.MergeFrom(e);
     }
     else if (e.Operations.Any())
     {
         BubbleChange?.Invoke(sender, e);
     }
 }
Ejemplo n.º 4
0
 protected override void BeginUpdateInternal()
 {
     base.BeginUpdateInternal();
     mBubbleChangeDuringUpdate = new BubbleChangeEventArgs();
 }
Ejemplo n.º 5
0
 private void Item_BubbleChange(object sender, BubbleChangeEventArgs e)
 {
     OnBubbleChange(this, e);
 }