示例#1
0
文件: PushPanel.cs 项目: icprog/MaTuo
        internal protected virtual void OnItemCaptionClick(
            PushPanelItemCaptionClickEventArgs e)
        {
            if (e.Item.IsExpanded)
            {
                CollapseItem(e.Item);
            }
            else
            {
                ExpandItem(e.Item);
            }

            PushPanelItemCaptionClickEventHandler handler =
                base.Events[EventItemCaptionClick] as PushPanelItemCaptionClickEventHandler;

            if (handler != null)
            {
                handler(this, e);
            }
        }
示例#2
0
        internal protected virtual void OnItemCaptionClick(
            PushPanelItemCaptionClickEventArgs e)
        {
            if (e.Item.IsExpanded)
            {
                CollapseItem(e.Item);
            }
            else
            {
                ExpandItem(e.Item);
            }

            PushPanelItemCaptionClickEventHandler handler =
                base.Events[EventItemCaptionClick] as PushPanelItemCaptionClickEventHandler;
            if (handler != null)
            {
                handler(this, e);
            }
        }