Exemple #1
0
 protected virtual void OnPanelNodeStateChanged(PanelNodeStateChangedEventArgs e)
 {
     if (this.PanelNodeStateChanged != null)
     {
         this.PanelNodeStateChanged(this, e);
     }
 }
Exemple #2
0
        void ISetPanelNodeStateHelper.SetPanelNodeState(PanelNodeState panelNodeState)//设置面板节点状态并激发相应事件
        {
            if (this.m_ePanelNodeState == panelNodeState)
            {
                return;
            }
            PanelNodeStateChangedEventArgs e = new PanelNodeStateChangedEventArgs(this.m_ePanelNodeState, panelNodeState, this);

            this.m_ePanelNodeState = panelNodeState;
            this.OnPanelNodeStateChanged(e);
            //
            switch (this.m_ePanelNodeState)
            {
            case PanelNodeState.eShow:
                this.OnOpened(new EventArgs());
                break;

            case PanelNodeState.eClose:
            case PanelNodeState.eRemove:
                this.OnClosed(new EventArgs());
                break;
            }
        }