예제 #1
0
            public void ShowContextMenuStrip(ViewTypes viewType, Graphics.Point containerLocation)
            {
                Point p = Point.Round(containerLocation);

                switch (viewType)
                {
                default:
                case ViewTypes.Cells:
                    if (this.control.ContextMenuStrip != null)
                    {
                        this.control.ContextMenuStrip.Show(this.control, p);
                    }
                    break;

                case ViewTypes.ColumnHeader:
                    if (this.control.columnHeaderContextMenuStrip != null)
                    {
                        this.control.columnHeaderContextMenuStrip.Show(this.control, p);
                    }
                    break;

                case ViewTypes.RowHeader:
                    if (this.control.rowHeaderContextMenuStrip != null)
                    {
                        this.control.rowHeaderContextMenuStrip.Show(this.control, p);
                    }
                    break;

                case ViewTypes.LeadHeader:
                    if (this.control.leadHeaderContextMenuStrip != null)
                    {
                        this.control.leadHeaderContextMenuStrip.Show(this.control, p);
                    }
                    break;
                }
            }
예제 #2
0
 public void ShowTooltip(Graphics.Point point, string content)
 {
 }
예제 #3
0
 public Graphics.Point PointToScreen(Graphics.Point p)
 {
     return(this.control.PointToScreen(Point.Round(p)));
 }