コード例 #1
0
        private void AddConfigXmlControl(ConfigFile configFile)
        {
            var configXmlControl = new ConfigXmlControl(configFile, _controller);

            panelConfigs.Controls.Add(configXmlControl);
            OrderControls(configXmlControl);
        }
コード例 #2
0
 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;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 private void AddConfigXmlControl(ConfigFile configFile)
 {
     var configXmlControl = new ConfigXmlControl(configFile, _controller);
     panelConfigs.Controls.Add(configXmlControl);
     OrderControls(configXmlControl);
 }