public FloatingTooltipControl(Control control, Direction direction, Point graphLocation, ProductionGraphViewer parent) { Control = control; Direction = direction; GraphLocation = graphLocation; GraphViewer = parent; parent.floatingTooltipControls.Add(this); parent.Controls.Add(control); Rectangle ttRect = parent.getTooltipScreenBounds(parent.GraphToScreen(graphLocation), new Point(control.Size), direction); control.Location = ttRect.Location; control.Focus(); }