private void AddConfigXmlControl(ConfigFile configFile)
        {
            var configXmlControl = new ConfigXmlControl(configFile, _controller);

            panelConfigs.Controls.Add(configXmlControl);
            OrderControls(configXmlControl);
        }
 private void OrderControls(ConfigXmlControl configXmlControl)
 {
     configXmlControl.Anchor = AnchorStyles.None;
     configXmlControl.Location = new Point(3, lastLocationY);
     configXmlControl.Width = this.Width - 20;
     configXmlControl.Anchor = (AnchorStyles.Top | AnchorStyles.Left) | AnchorStyles.Right;
     lastLocationY += configXmlControl.Height + 25;
 }
 private void OrderControls(ConfigXmlControl configXmlControl)
 {
     configXmlControl.Anchor   = AnchorStyles.None;
     configXmlControl.Location = new Point(3, lastLocationY);
     configXmlControl.Width    = this.Width - 20;
     configXmlControl.Anchor   = (AnchorStyles.Top | AnchorStyles.Left) | AnchorStyles.Right;
     lastLocationY            += configXmlControl.Height + 25;
 }
 private void AddConfigXmlControl(ConfigFile configFile)
 {
     var configXmlControl = new ConfigXmlControl(configFile, _controller);
     panelConfigs.Controls.Add(configXmlControl);
     OrderControls(configXmlControl);
 }