ComponentFactory.Krypton.Toolkit.KryptonMonthCalendarDesigner.OnCalendarDoubleClick C# (CSharp) Method

OnCalendarDoubleClick() private method

private OnCalendarDoubleClick ( object sender, Point pt ) : void
sender object
pt Point
return void
        private void OnCalendarDoubleClick(object sender, Point pt)
        {
            // Get any component associated with the current mouse position
            Component component = _monthCalendar.DesignerComponentFromPoint(pt);

            if (component != null)
            {
                // Get the designer for the component
                IDesigner designer = _designerHost.GetDesigner(component);

                // Request code for the default event be generated
                designer.DoDefaultAction();
            }
        }