Пример #1
0
        protected override void OnMouseDoubleClick(EventArgs e)
        {
            // Get node root.
            Syncfusion.Windows.Forms.Diagram.Model diagramModel = this.Root;
            // Begin model update.
            diagramModel.BeginUpdate();

            // If node is expanded collapse its, else expand.
            if (m_bExpanded == false)
            {
                this.ExpandSubNodes(true);
            }
            else
            {
                this.CollapseSubNodes(true);
            }

            diagramModel.EndUpdate();
        }
Пример #2
0
    protected override void OnMouseClick(EventArgs e)
    {
        base.OnMouseClick(e);
        if (m_bIsExpander)
        {
            Syncfusion.Windows.Forms.Diagram.Model diagramModel = this.Root;

            diagramModel.BeginUpdate();

            if (m_bExpanded == false)
            {
                this.ExpandSubNodes(true);
            }
            else
            {
                this.CollapseSubNodes(true);
            }
            diagramModel.EndUpdate();
        }
    }