ARCed.Forms.SkinSettingsForm.groupBoxSkinType_CollapseBoxClickedEvent C# (CSharp) Method

groupBoxSkinType_CollapseBoxClickedEvent() private method

private groupBoxSkinType_CollapseBoxClickedEvent ( object sender ) : void
sender object
return void
        private void groupBoxSkinType_CollapseBoxClickedEvent(object sender)
        {
            int y = this.groupBoxSkinType.FullHeight - this.groupBoxSkinType.CollapsedHeight;
            if (this.groupBoxSkinType.IsCollapsed)
                y *= -1;
            Control[] ctrls = { this.groupBoxFontSettings, this.groupBoxGradientSettings, this.buttonApply, this.buttonDefault };
            foreach (Control ctrl in ctrls)
                ctrl.Location = new Point(ctrl.Location.X, ctrl.Location.Y + y);
        }