protected override void OnMouseUp(MouseEventArgs e) { base.OnMouseUp(e); // if (this.pOwner == null) { return; } IExpandableCaptionPanel pExpandableCaptionPanel = this.pOwner.pOwner as IExpandableCaptionPanel; if (pExpandableCaptionPanel == null) { return; } pExpandableCaptionPanel.Visible = false; }
protected override void OnMouseUp(MouseEventArgs e) { base.OnMouseUp(e); // if (this.pOwner == null) { return; } IExpandableCaptionPanel pExpandableCaptionPanel = this.pOwner as IExpandableCaptionPanel; if (pExpandableCaptionPanel == null) { return; } if (!pExpandableCaptionPanel.AutoSetIsExpand) { return; } ((ISetExpandableCaptionPanelHelper)pExpandableCaptionPanel).SetIsExpand(!pExpandableCaptionPanel.IsExpand); }