コード例 #1
0
        private void OnLeagueClientReposition(StaticPinvokeLolClient sender, EventArgs e)
        {
            Rectangle rect = sender.getClientOverlayPosition();

            this.Left = rect.X;
            this.Top  = rect.Y;
        }
コード例 #2
0
        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);
            }
        }