Beispiel #1
0
		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();
		}
Beispiel #2
0
        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();
        }
Beispiel #3
0
        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();
        }