private void OnLeagueClientReposition(StaticPinvokeLolClient sender, EventArgs e) { Rectangle rect = sender.getClientOverlayPosition(); this.Left = rect.X; this.Top = rect.Y; }
public void RepositionClientOverlay() { Rectangle pos = _lcg.getClientOverlayPosition(); this.Left = pos.X; this.Top = pos.Y; this.Width = pos.Width; this.Height = pos.Height; if (pos.Width - cboGroups.Margin.Left - 5 > 0) { cboGroups.Width = pos.Width - cboGroups.Margin.Left - 15; } else { cboGroups.Width = Math.Abs(pos.Width - cboGroups.Margin.Left - 5); } }