OdessaGUIProject.UI_Helpers.DimmerMask.AdjustPosition C# (CSharp) Method

AdjustPosition() private method

private AdjustPosition ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void AdjustPosition(object sender, EventArgs e)
        {
            var parent = sender as Form;
            if (parent != null)
            {
                this.Location = parent.PointToScreen(Point.Empty);
                this.ClientSize = parent.ClientSize;
            }
        }