BlottoBeats.Client.TextBoxSetting.TextBoxSetting C# (CSharp) Method

TextBoxSetting() public method

public TextBoxSetting ( int pos, String name, MainForm parent, int minRand, int maxRand, int size ) : System
pos int
name String
parent MainForm
minRand int
maxRand int
size int
return System
        public TextBoxSetting(int pos, String name, MainForm parent, int minRand, int maxRand, int size)
        {
            this.pos = pos;
            this.parent = parent;
            this.minRand = minRand;
            this.maxRand = maxRand;
            label = new Label();
            label.Text = name;
            label.BackColor = Color.Transparent;
            text = new TextBox();
            text.Text = "1";
            checkbox = new CheckBox();
            checkbox.BackColor = Color.Transparent;
            checkbox.CheckedChanged += this.checkboxChanged;
            checkbox.Checked = true;
            parent.Controls.Add(label);
            parent.Controls.Add(text);
            parent.Controls.Add(checkbox);
            init(size);
        }