Exemplo n.º 1
0
 private void OnLinkSelected(object sender, LinkSelectArgumetns args)
 {
     if (LinkSelected != null)
     {
         LinkSelected(this, args);
     }
 }
Exemplo n.º 2
0
        private void OnPanelLinkSelected(object sender, LinkSelectArgumetns e)
        {
            if (!e.ToState)
            {
                switch (e.Link.Direction)
                {
                case enLinkDirection.Input:
                    SelectedInputPoint = null;

                    mainPanel.Invalidate();
                    mainPanel.Update();

                    break;

                case enLinkDirection.Output:
                    SelectedOutputPoint = null;
                    break;
                }

                return;
            }

            switch (e.Link.Direction)
            {
            case enLinkDirection.Input:
                if (SelectedInputPoint != null)
                {
                    SelectedInputPoint.IsSelected = false;
                }
                SelectedInputPoint = e.Link;

                mainPanel.Invalidate();
                mainPanel.Update();

                break;

            case enLinkDirection.Output:
                if (SelectedOutputPoint != null)
                {
                    SelectedOutputPoint.IsSelected = false;
                }
                SelectedOutputPoint = e.Link;
                break;
            }



            CheckLinkMI();
        }