コード例 #1
0
ファイル: Diagram.cs プロジェクト: ralungei/OneClickWeb
        /// <summary>
        /// Override to provide the right mouse action when trying
        /// to create links on the diagram
        /// </summary>
        /// <param name="pointArgs"></param>
        public override void OnViewMouseEnter(DslDiagrams::DiagramPointEventArgs pointArgs)
        {
            if (pointArgs == null)
            {
                throw new global::System.ArgumentNullException("pointArgs");
            }

            DslDiagrams::DiagramView activeView = this.ActiveDiagramView;

            if (activeView != null)
            {
                DslDiagrams::MouseAction action = null;
                if (SelectedToolboxItemSupportsFilterString(activeView, global::UPM_IPS.RAARMAPMCWeberMDD.RAARMAPMCWeberMDDToolboxHelper.RelAtribFilterString))
                {
                    if (this.relAtribConnectAction == null)
                    {
                        this.relAtribConnectAction = new global::UPM_IPS.RAARMAPMCWeberMDD.RelAtribConnectAction(this);
                        this.relAtribConnectAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnConnectActionDeactivated);
                    }
                    action = this.relAtribConnectAction;
                }
                else if (SelectedToolboxItemSupportsFilterString(activeView, global::UPM_IPS.RAARMAPMCWeberMDD.RAARMAPMCWeberMDDToolboxHelper.RelIzqFilterString))
                {
                    if (this.relIzqConnectAction == null)
                    {
                        this.relIzqConnectAction = new global::UPM_IPS.RAARMAPMCWeberMDD.RelIzqConnectAction(this);
                        this.relIzqConnectAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnConnectActionDeactivated);
                    }
                    action = this.relIzqConnectAction;
                }
                else if (SelectedToolboxItemSupportsFilterString(activeView, global::UPM_IPS.RAARMAPMCWeberMDD.RAARMAPMCWeberMDDToolboxHelper.RelDerFilterString))
                {
                    if (this.relDerConnectAction == null)
                    {
                        this.relDerConnectAction = new global::UPM_IPS.RAARMAPMCWeberMDD.RelDerConnectAction(this);
                        this.relDerConnectAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnConnectActionDeactivated);
                    }
                    action = this.relDerConnectAction;
                }
                else
                {
                    action = null;
                }

                if (pointArgs.DiagramClientView.ActiveMouseAction != action)
                {
                    try
                    {
                        this.changingMouseAction = true;
                        pointArgs.DiagramClientView.ActiveMouseAction = action;
                    }
                    finally
                    {
                        this.changingMouseAction = false;
                    }
                }
            }
        }
コード例 #2
0
ファイル: Diagram.cs プロジェクト: ArturGudiev/FamilyTree
        /// <summary>
        /// Override to provide the right mouse action when trying
        /// to create links on the diagram
        /// </summary>
        /// <param name="pointArgs"></param>
        public override void OnViewMouseEnter(DslDiagrams::DiagramPointEventArgs pointArgs)
        {
            if (pointArgs == null)
            {
                throw new global::System.ArgumentNullException("pointArgs");
            }

            DslDiagrams::DiagramView activeView = this.ActiveDiagramView;

            if (activeView != null)
            {
                DslDiagrams::MouseAction action = null;
                if (SelectedToolboxItemSupportsFilterString(activeView, global::Company.FamilyTree.FamilyTreeToolboxHelper.ParentLinkFilterString))
                {
                    if (this.parentLinkConnectAction == null)
                    {
                        this.parentLinkConnectAction = new global::Company.FamilyTree.ParentLinkConnectAction(this);
                        this.parentLinkConnectAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnConnectActionDeactivated);
                    }
                    action = this.parentLinkConnectAction;
                }
                else if (SelectedToolboxItemSupportsFilterString(activeView, global::Company.FamilyTree.FamilyTreeToolboxHelper.ResidenceConnectionFilterString))
                {
                    if (this.residenceConnectionConnectAction == null)
                    {
                        this.residenceConnectionConnectAction = new global::Company.FamilyTree.ResidenceConnectionConnectAction(this);
                        this.residenceConnectionConnectAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnConnectActionDeactivated);
                    }
                    action = this.residenceConnectionConnectAction;
                }
                else if (SelectedToolboxItemSupportsFilterString(activeView, global::Company.FamilyTree.FamilyTreeToolboxHelper.NationalityConnectorFilterString))
                {
                    if (this.nationalityConnectorConnectAction == null)
                    {
                        this.nationalityConnectorConnectAction = new global::Company.FamilyTree.NationalityConnectorConnectAction(this);
                        this.nationalityConnectorConnectAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnConnectActionDeactivated);
                    }
                    action = this.nationalityConnectorConnectAction;
                }
                else
                {
                    action = null;
                }

                if (pointArgs.DiagramClientView.ActiveMouseAction != action)
                {
                    try
                    {
                        this.changingMouseAction = true;
                        pointArgs.DiagramClientView.ActiveMouseAction = action;
                    }
                    finally
                    {
                        this.changingMouseAction = false;
                    }
                }
            }
        }
コード例 #3
0
        /// <summary>
        /// Snap toolbox selection back to regular pointer after using a custom connect action.
        /// </summary>
        private void OnConnectActionDeactivated(object sender, DslDiagrams::DiagramEventArgs e)
        {
            DslDiagrams::DiagramView activeView = this.ActiveDiagramView;

            if (activeView != null && activeView.Toolbox != null)
            {
                activeView.Toolbox.SelectedToolboxItemUsed();
            }
        }
コード例 #4
0
ファイル: Diagram.cs プロジェクト: vijumn/open-wssf-2015
        /// <summary>
        /// Overridable method to manage the mouse deactivation. The default implementation snap stoolbox selection back to regular pointer
        /// after using a custom toolbox action.
        /// </summary>
        protected virtual void OnMouseActionDeactivated()
        {
            DslDiagrams::DiagramView activeView = this.ActiveDiagramView;

            if (activeView != null && activeView.Toolbox != null)
            {
                // If we're not changing mouse action due to changing toolbox selection change,
                // reset toolbox selection.
                if (!this.changingMouseAction)
                {
                    activeView.Toolbox.SelectedToolboxItemUsed();
                }
            }
        }
コード例 #5
0
        /// <summary>
        /// Override to provide the right mouse action when trying
        /// to create links on the diagram
        /// </summary>
        /// <param name="pointArgs"></param>
        public override void OnViewMouseEnter(DslDiagrams::DiagramPointEventArgs pointArgs)
        {
            if (pointArgs == null)
            {
                throw new global::System.ArgumentNullException("pointArgs");
            }

            DslDiagrams::DiagramView activeView = this.ActiveDiagramView;

            if (activeView != null)
            {
                DslDiagrams::MouseAction action = null;
                if (SelectedToolboxItemSupportsFilterString(activeView, global::Microsoft.Example.Circuits.CircuitsToolboxHelper.WireFilterString))
                {
                    if (this.wireConnectAction == null)
                    {
                        this.wireConnectAction = new global::Microsoft.Example.Circuits.WireConnectAction(this);
                        this.wireConnectAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnConnectActionDeactivated);
                    }
                    action = this.wireConnectAction;
                }
                else if (SelectedToolboxItemSupportsFilterString(activeView, global::Microsoft.Example.Circuits.CircuitsToolboxHelper.CommentConnectorFilterString))
                {
                    if (this.commentConnectorConnectAction == null)
                    {
                        this.commentConnectorConnectAction = new global::Microsoft.Example.Circuits.CommentConnectorConnectAction(this);
                        this.commentConnectorConnectAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnConnectActionDeactivated);
                    }
                    action = this.commentConnectorConnectAction;
                }
                else
                {
                    action = null;
                }

                if (pointArgs.DiagramClientView.ActiveMouseAction != action)
                {
                    try
                    {
                        this.changingMouseAction = true;
                        pointArgs.DiagramClientView.ActiveMouseAction = action;
                    }
                    finally
                    {
                        this.changingMouseAction = false;
                    }
                }
            }
        }
コード例 #6
0
ファイル: Diagram.cs プロジェクト: simple555a/DotNetAppDev
        /// <summary>
        /// Override to provide the right mouse action when trying
        /// to create links on the diagram
        /// </summary>
        /// <param name="pointArgs"></param>
        public override void OnViewMouseEnter(DslDiagrams::DiagramPointEventArgs pointArgs)
        {
            if (pointArgs == null)
            {
                throw new global::System.ArgumentNullException("pointArgs");
            }

            DslDiagrams::DiagramView activeView = this.ActiveDiagramView;

            if (activeView != null)
            {
                DslDiagrams::MouseAction action = null;
                if (SelectedToolboxItemSupportsFilterString(activeView, global::AppDevUnited.TaskFlowDSLSample.TaskFlowDSLSampleToolboxHelper.FlowFilterString))
                {
                    if (this.flowConnectAction == null)
                    {
                        this.flowConnectAction = new global::AppDevUnited.TaskFlowDSLSample.FlowConnectAction(this);
                        this.flowConnectAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnConnectActionDeactivated);
                    }
                    action = this.flowConnectAction;
                }
                else if (SelectedToolboxItemSupportsFilterString(activeView, global::AppDevUnited.TaskFlowDSLSample.TaskFlowDSLSampleToolboxHelper.CommentSubjectsFilterString))
                {
                    if (this.commentSubjectsConnectAction == null)
                    {
                        this.commentSubjectsConnectAction = new global::AppDevUnited.TaskFlowDSLSample.CommentSubjectsConnectAction(this);
                        this.commentSubjectsConnectAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnConnectActionDeactivated);
                    }
                    action = this.commentSubjectsConnectAction;
                }
                else
                {
                    action = null;
                }

                if (pointArgs.DiagramClientView.ActiveMouseAction != action)
                {
                    try
                    {
                        this.changingMouseAction = true;
                        pointArgs.DiagramClientView.ActiveMouseAction = action;
                    }
                    finally
                    {
                        this.changingMouseAction = false;
                    }
                }
            }
        }
コード例 #7
0
        /// <summary>
        /// Override to provide the right mouse action when trying
        /// to create links on the diagram
        /// </summary>
        /// <param name="pointArgs"></param>
        public override void OnViewMouseEnter(DslDiagrams::DiagramPointEventArgs pointArgs)
        {
            if (pointArgs == null)
            {
                throw new global::System.ArgumentNullException("pointArgs");
            }

            DslDiagrams::DiagramView activeView = this.ActiveDiagramView;

            if (activeView != null)
            {
                DslDiagrams::MouseAction action = null;
                if (activeView.SelectedToolboxItemSupportsFilterString(global::BizTalkMessaging.BizTalkMessagingToolboxHelper.Application_To_Broker_ConnectorFilterString))
                {
                    if (this.application_To_Broker_ConnectorConnectAction == null)
                    {
                        this.application_To_Broker_ConnectorConnectAction = new global::BizTalkMessaging.Application_To_Broker_ConnectorConnectAction(this);
                        this.application_To_Broker_ConnectorConnectAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnConnectActionDeactivated);
                    }
                    action = this.application_To_Broker_ConnectorConnectAction;
                }
                else if (activeView.SelectedToolboxItemSupportsFilterString(global::BizTalkMessaging.BizTalkMessagingToolboxHelper.Broker_To_Application_ConnectorFilterString))
                {
                    if (this.broker_To_Application_ConnectorConnectAction == null)
                    {
                        this.broker_To_Application_ConnectorConnectAction = new global::BizTalkMessaging.Broker_To_Application_ConnectorConnectAction(this);
                        this.broker_To_Application_ConnectorConnectAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnConnectActionDeactivated);
                    }
                    action = this.broker_To_Application_ConnectorConnectAction;
                }
                else
                {
                    action = null;
                }

                if (pointArgs.DiagramClientView.ActiveMouseAction != action)
                {
                    pointArgs.DiagramClientView.ActiveMouseAction = action;
                }
            }
        }
コード例 #8
0
        /// <summary>
        /// Override to provide the right mouse action when trying
        /// to create links on the diagram
        /// </summary>
        /// <param name="pointArgs"></param>
        public override void OnViewMouseEnter(DslDiagrams::DiagramPointEventArgs pointArgs)
        {
            if (pointArgs == null)
            {
                throw new global::System.ArgumentNullException("pointArgs");
            }

            DslDiagrams::DiagramView activeView = this.ActiveDiagramView;

            if (activeView != null)
            {
                DslDiagrams::MouseAction action = null;
                if (SelectedToolboxItemSupportsFilterString(activeView, global::EPAM.NHModelingLanguage.NHModelingLanguageToolboxHelper.InheritanceToolFilterString))
                {
                    if (this.inheritanceToolConnectAction == null)
                    {
                        this.inheritanceToolConnectAction = new global::EPAM.NHModelingLanguage.InheritanceToolConnectAction(this);
                        this.inheritanceToolConnectAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnConnectActionDeactivated);
                    }
                    action = this.inheritanceToolConnectAction;
                }
                else
                {
                    action = null;
                }

                if (pointArgs.DiagramClientView.ActiveMouseAction != action)
                {
                    try
                    {
                        this.changingMouseAction = true;
                        pointArgs.DiagramClientView.ActiveMouseAction = action;
                    }
                    finally
                    {
                        this.changingMouseAction = false;
                    }
                }
            }
        }
コード例 #9
0
        /// <summary>
        /// Override to provide the right mouse action when trying
        /// to create links on the diagram
        /// </summary>
        /// <param name="pointArgs"></param>
        public override void OnViewMouseEnter(DslDiagrams::DiagramPointEventArgs pointArgs)
        {
            if (pointArgs == null)
            {
                throw new global::System.ArgumentNullException("pointArgs");
            }

            DslDiagrams::DiagramView activeView = this.ActiveDiagramView;

            if (activeView != null)
            {
                DslDiagrams::MouseAction action = null;
                if (SelectedToolboxItemSupportsFilterString(activeView, global::imbNLP.PipelineDSLD.NLPPipelineDSLDToolboxHelper.ExampleRelationshipFilterString))
                {
                    if (this.exampleRelationshipConnectAction == null)
                    {
                        this.exampleRelationshipConnectAction = new global::imbNLP.PipelineDSLD.ExampleRelationshipConnectAction(this);
                        this.exampleRelationshipConnectAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnConnectActionDeactivated);
                    }
                    action = this.exampleRelationshipConnectAction;
                }
                else
                {
                    action = null;
                }

                if (pointArgs.DiagramClientView.ActiveMouseAction != action)
                {
                    try
                    {
                        this.changingMouseAction = true;
                        pointArgs.DiagramClientView.ActiveMouseAction = action;
                    }
                    finally
                    {
                        this.changingMouseAction = false;
                    }
                }
            }
        }
コード例 #10
0
ファイル: Diagram.cs プロジェクト: walterbaidal/MDD-Project
        /// <summary>
        /// Override to provide the right mouse action when trying
        /// to create links on the diagram
        /// </summary>
        /// <param name="pointArgs"></param>
        public override void OnViewMouseEnter(DslDiagrams::DiagramPointEventArgs pointArgs)
        {
            if (pointArgs == null)
            {
                throw new global::System.ArgumentNullException("pointArgs");
            }

            DslDiagrams::DiagramView activeView = this.ActiveDiagramView;

            if (activeView != null)
            {
                DslDiagrams::MouseAction action = null;
                if (SelectedToolboxItemSupportsFilterString(activeView, global::IPS_GT16.XCXABGProyectoIPS.XCXABGProyectoIPSToolboxHelper.EntidadRelacionFilterString))
                {
                    if (this.entidadRelacionConnectAction == null)
                    {
                        this.entidadRelacionConnectAction = new global::IPS_GT16.XCXABGProyectoIPS.EntidadRelacionConnectAction(this);
                        this.entidadRelacionConnectAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnConnectActionDeactivated);
                    }
                    action = this.entidadRelacionConnectAction;
                }
                else
                {
                    action = null;
                }

                if (pointArgs.DiagramClientView.ActiveMouseAction != action)
                {
                    try
                    {
                        this.changingMouseAction = true;
                        pointArgs.DiagramClientView.ActiveMouseAction = action;
                    }
                    finally
                    {
                        this.changingMouseAction = false;
                    }
                }
            }
        }
コード例 #11
0
ファイル: Diagram.cs プロジェクト: vijumn/open-wssf-2015
        /// <summary>
        /// Override to provide the right mouse action when trying
        /// to create links on the diagram
        /// </summary>
        /// <param name="pointArgs"></param>
        public override void OnViewMouseEnter(DslDiagrams::DiagramPointEventArgs pointArgs)
        {
            if (pointArgs == null)
            {
                throw new global::System.ArgumentNullException("pointArgs");
            }

            DslDiagrams::DiagramView activeView = this.ActiveDiagramView;

            if (activeView != null)
            {
                bool stickyMode = false;
                DslDesign::ModelingToolboxItem selectedToolboxItem = activeView.Toolbox.GetSelectedToolboxItem() as DslDesign::ModelingToolboxItem;
                if (selectedToolboxItem != null && selectedToolboxItem.Id == this.stickyToolboxItemId)
                {
                    stickyMode = true;
                }
                else
                {
                    stickyMode = false;
                    this.stickyToolboxItemId = null;
                }

                DslDiagrams::MouseAction action = null;
                if (SelectedToolboxItemSupportsFilterString(activeView, global::Microsoft.Practices.ServiceFactory.HostDesigner.HostDesignerToolboxHelper.HostApplicationFilterString))
                {
                    if (this.hostApplicationCreateAction == null)
                    {
                        this.hostApplicationCreateAction = new global::Microsoft.Practices.ServiceFactory.HostDesigner.HostApplicationCreateAction(this);
                        this.hostApplicationCreateAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnToolboxActionDeactivated);
                    }
                    this.hostApplicationCreateAction.StickyMode = stickyMode;
                    action = this.hostApplicationCreateAction;
                }
                else if (SelectedToolboxItemSupportsFilterString(activeView, global::Microsoft.Practices.ServiceFactory.HostDesigner.HostDesignerToolboxHelper.ServiceFilterString))
                {
                    if (this.serviceCreateAction == null)
                    {
                        this.serviceCreateAction = new global::Microsoft.Practices.ServiceFactory.HostDesigner.ServiceCreateAction(this);
                        this.serviceCreateAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnToolboxActionDeactivated);
                    }
                    this.serviceCreateAction.StickyMode = stickyMode;
                    action = this.serviceCreateAction;
                }
                else if (SelectedToolboxItemSupportsFilterString(activeView, global::Microsoft.Practices.ServiceFactory.HostDesigner.HostDesignerToolboxHelper.EndpointFilterString))
                {
                    if (this.endpointCreateAction == null)
                    {
                        this.endpointCreateAction = new global::Microsoft.Practices.ServiceFactory.HostDesigner.EndpointCreateAction(this);
                        this.endpointCreateAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnToolboxActionDeactivated);
                    }
                    this.endpointCreateAction.StickyMode = stickyMode;
                    action = this.endpointCreateAction;
                }
                else if (SelectedToolboxItemSupportsFilterString(activeView, global::Microsoft.Practices.ServiceFactory.HostDesigner.HostDesignerToolboxHelper.ClientApplicationFilterString))
                {
                    if (this.clientApplicationCreateAction == null)
                    {
                        this.clientApplicationCreateAction = new global::Microsoft.Practices.ServiceFactory.HostDesigner.ClientApplicationCreateAction(this);
                        this.clientApplicationCreateAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnToolboxActionDeactivated);
                    }
                    this.clientApplicationCreateAction.StickyMode = stickyMode;
                    action = this.clientApplicationCreateAction;
                }
                else if (SelectedToolboxItemSupportsFilterString(activeView, global::Microsoft.Practices.ServiceFactory.HostDesigner.HostDesignerToolboxHelper.ProxyFilterString))
                {
                    if (this.proxyCreateAction == null)
                    {
                        this.proxyCreateAction = new global::Microsoft.Practices.ServiceFactory.HostDesigner.ProxyCreateAction(this);
                        this.proxyCreateAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnToolboxActionDeactivated);
                    }
                    this.proxyCreateAction.StickyMode = stickyMode;
                    action = this.proxyCreateAction;
                }
                else if (SelectedToolboxItemSupportsFilterString(activeView, global::Microsoft.Practices.ServiceFactory.HostDesigner.HostDesignerToolboxHelper.ProxyEndpointConnectionToolFilterString))
                {
                    if (this.proxyEndpointConnectionToolConnectAction == null)
                    {
                        this.proxyEndpointConnectionToolConnectAction = new global::Microsoft.Practices.ServiceFactory.HostDesigner.ProxyEndpointConnectionToolConnectAction(this);
                        this.proxyEndpointConnectionToolConnectAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnToolboxActionDeactivated);
                    }
                    this.proxyEndpointConnectionToolConnectAction.StickyMode = stickyMode;
                    action = this.proxyEndpointConnectionToolConnectAction;
                }
                else
                {
                    action = null;
                }

                if (pointArgs.DiagramClientView.ActiveMouseAction != action)
                {
                    try
                    {
                        this.changingMouseAction = true;
                        pointArgs.DiagramClientView.ActiveMouseAction = action;
                    }
                    finally
                    {
                        this.changingMouseAction = false;
                    }
                }
            }
        }
コード例 #12
0
ファイル: Diagram.cs プロジェクト: vijumn/open-wssf-2015
 /// <summary>
 /// Virtual method to provide a filter when to select the mouse action
 /// </summary>
 /// <param name="activeView">Currently active view</param>
 /// <param name="filter">filter string used to filter the toolbox items</param>
 protected virtual bool SelectedToolboxItemSupportsFilterString(DslDiagrams::DiagramView activeView, string filter)
 {
     return(activeView.SelectedToolboxItemSupportsFilterString(filter));
 }
コード例 #13
0
        /// <summary>
        /// Override to provide the right mouse action when trying
        /// to create links on the diagram
        /// </summary>
        /// <param name="pointArgs"></param>
        public override void OnViewMouseEnter(DslDiagrams::DiagramPointEventArgs pointArgs)
        {
            if (pointArgs == null)
            {
                throw new global::System.ArgumentNullException("pointArgs");
            }

            DslDiagrams::DiagramView activeView = this.ActiveDiagramView;

            if (activeView != null)
            {
                DslDiagrams::MouseAction action = null;
                if (SelectedToolboxItemSupportsFilterString(activeView, global::Ufba.vShome.vShomeToolboxHelper.FatherFilterString))
                {
                    if (this.fatherConnectAction == null)
                    {
                        this.fatherConnectAction = new global::Ufba.vShome.FatherConnectAction(this);
                        this.fatherConnectAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnConnectActionDeactivated);
                    }
                    action = this.fatherConnectAction;
                }
                else if (SelectedToolboxItemSupportsFilterString(activeView, global::Ufba.vShome.vShomeToolboxHelper.ActuatorFilterString))
                {
                    if (this.actuatorConnectAction == null)
                    {
                        this.actuatorConnectAction = new global::Ufba.vShome.ActuatorConnectAction(this);
                        this.actuatorConnectAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnConnectActionDeactivated);
                    }
                    action = this.actuatorConnectAction;
                }
                else if (SelectedToolboxItemSupportsFilterString(activeView, global::Ufba.vShome.vShomeToolboxHelper.SensorFilterString))
                {
                    if (this.sensorConnectAction == null)
                    {
                        this.sensorConnectAction = new global::Ufba.vShome.SensorConnectAction(this);
                        this.sensorConnectAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnConnectActionDeactivated);
                    }
                    action = this.sensorConnectAction;
                }
                else if (SelectedToolboxItemSupportsFilterString(activeView, global::Ufba.vShome.vShomeToolboxHelper.AlternativeFilterString))
                {
                    if (this.alternativeConnectAction == null)
                    {
                        this.alternativeConnectAction = new global::Ufba.vShome.AlternativeConnectAction(this);
                        this.alternativeConnectAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnConnectActionDeactivated);
                    }
                    action = this.alternativeConnectAction;
                }
                else if (SelectedToolboxItemSupportsFilterString(activeView, global::Ufba.vShome.vShomeToolboxHelper.BrotherFilterString))
                {
                    if (this.brotherConnectAction == null)
                    {
                        this.brotherConnectAction = new global::Ufba.vShome.BrotherConnectAction(this);
                        this.brotherConnectAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnConnectActionDeactivated);
                    }
                    action = this.brotherConnectAction;
                }
                else
                {
                    action = null;
                }

                if (pointArgs.DiagramClientView.ActiveMouseAction != action)
                {
                    try
                    {
                        this.changingMouseAction = true;
                        pointArgs.DiagramClientView.ActiveMouseAction = action;
                    }
                    finally
                    {
                        this.changingMouseAction = false;
                    }
                }
            }
        }