ComponentFactory.Krypton.Toolkit.KryptonBreadCrumbDesigner.OnBreadCrumbMouseUp C# (CSharp) Method

OnBreadCrumbMouseUp() private method

private OnBreadCrumbMouseUp ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
return void
        private void OnBreadCrumbMouseUp(object sender, MouseEventArgs e)
        {
            if ((_breadCrumb != null) && (e.Button == MouseButtons.Left))
            {
                // Get any component associated with the current mouse position
                Component component = _breadCrumb.DesignerComponentFromPoint(new Point(e.X, e.Y));

                if (component != null)
                {
                    // Force the layout to be update for any change in selection
                    _breadCrumb.PerformLayout();

                    // Select the component
                    ArrayList selectionList = new ArrayList();
                    selectionList.Add(component);
                    _selectionService.SetSelectedComponents(selectionList, SelectionTypes.Auto);
                }
            }
        }