Пример #1
0
        protected override void OnDeleted()
        {
            base.OnDeleted();

            if (this.Store.TransactionManager.InTransaction)
            {
                // delete widget value
                if (m_widgetValueToDel != null)
                {
                    m_widgetValueToDel.Delete();
                    m_widgetValueToDel = null;
                }

                if (m_deleteWithoutPropagating)
                {
                    return;
                }

                if (PropagateDeletingToParent && m_parentToDel != null)
                {
                    onPropagateDeletingParent(m_parentToDel);
                    m_parentToDel = null;
                }
            }
        }
Пример #2
0
        protected override void OnDeleting()
        {
            m_deleting = true;
            try
            {
                m_parentToDel      = this.Parent;
                m_widgetValueToDel = this.WidgetValue;
                if (m_widgetValueToDel != null && m_widgetValueToDel.HasExternalReference)
                {
                    m_widgetValueToDel = null;
                }

                base.OnDeleting();
            }
            finally
            {
                m_deleting = false;
            }
        }