Exemplo n.º 1
0
 public void OnStackChildRemoved(object sender, ChildRemovedEventArgs e)
 {
     if (!clearing && e.RemovedChild is RulePane && rulePanes.Contains((RulePane)e.RemovedChild))
     {
         rulePanes.Remove((RulePane)e.RemovedChild);
         updateFormulaInExcel();
     }
 }
Exemplo n.º 2
0
        internal void RemoveChild(View child)
        {
            // Do actual child removal
            Interop.Actor.Actor_Remove(swigCPtr, View.getCPtr(child));
            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }

            Children.Remove(child);
            child.InternalParent = null;

            if (ChildRemoved != null)
            {
                ChildRemovedEventArgs e = new ChildRemovedEventArgs
                {
                    Removed = child
                };
                ChildRemoved(this, e);
            }
        }