Example #1
0
        public void EndUpdate()
        {
            if (--UpdateCount == 0)
            {
                OnUpdateEnd(this, EventArgs.Empty);
            }
            OnUpdate(this, EventArgs.Empty);
#if DEBUG
            //var list = _Parent as TAPSIMPLEList;
            var id = "null";
            //if (list != null)
            //{
            //    id = "ListType=" + list.ListType.ToString();
            //    if (list.ListType == TPivotPanelType.pptCol && _UpdateCount == 0)
            //    {
            //    }
            //}

            DebugLogging.WriteLine("Updater" + new string(' ', Depth) +
                                   string.Format("EndUpdate({0}) Depth={1}", id, UpdateCount));

            if (UpdateCount < 0)
            {
                throw new ArgumentOutOfRangeException("_UpdateCount < 0!");
            }
#endif
        }
Example #2
0
        public void BeginUpdate()
        {
            OnUpdate(this, EventArgs.Empty);
#if DEBUG
            //var list = _Parent as TAPSIMPLEList;
            var id = "null";
            //if (list != null)
            //{
            //    id = "ListType=" + list.ListType.ToString();
            //}

            DebugLogging.WriteLine("Updater" + new string(' ', Depth) +
                                   string.Format("BeginUpdate({0}) Depth={1}", id, UpdateCount));
#endif
            UpdateCount++;
        }