void LoadSettings(IEnumerable<string> ButtonList) { SuspendLayout(); int x = 4; int y = 4; foreach (string ButtonName in ButtonList) { var ctrl = new AnalogBindControl(ButtonName, RealConfigObject[ButtonName]); ctrl.Location = new Point(x, y); y += ctrl.Height + 4; Controls.Add(ctrl); } ResumeLayout(); }
void LoadSettings(IEnumerable <string> ButtonList) { SuspendLayout(); int x = 4; int y = 4; foreach (string ButtonName in ButtonList) { var ctrl = new AnalogBindControl(ButtonName, RealConfigObject[ButtonName]); ctrl.Location = new Point(x, y); y += ctrl.Height + 4; Controls.Add(ctrl); } ResumeLayout(); }
private void LoadSettings(IEnumerable <string> buttonList) { SuspendLayout(); int x = 4; int y = 4; foreach (string buttonName in buttonList) { var ctrl = new AnalogBindControl(buttonName, _realConfigObject[buttonName]) { Location = new Point(x, y) }; y += ctrl.Height + 4; Controls.Add(ctrl); } ResumeLayout(); }