コード例 #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
ファイル: PushPanel.cs プロジェクト: jxdong1013/archivems
        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);
            }
        }