예제 #1
0
            private int AddInternal(StatusBarPanel p, bool refresh)
            {
                if (p == null)
                {
                    throw new ArgumentNullException("value");
                }

                p.SetParent(owner);
                int res = panels.Add(p);

                if (refresh)
                {
                    owner.CalcPanelSizes();
                    owner.Refresh();
                }

                // UIA Framework Event: Panel Added
                OnUIACollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Add, res));

                return(res);
            }