Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i = 1; i + 4 <= Licence.Length; i += 4)
- {
- textBoxName[i / 4] = new TextBox();
- textBoxName[i / 4].Location = new Point(4, 34 * (i / 4 + 1) + 24);
- textBoxName[i / 4].Size = new Size(100, 30);
- textBoxName[i / 4].Text = Licence[i + 1];
- Controls.Add(textBoxName[i / 4]);
- textBoxEmail[i / 4] = new TextBox();
- textBoxEmail[i / 4].Location = new Point(108, 34 * (i / 4 + 1) + 24);
- textBoxEmail[i / 4].Size = new Size(100, 30);
- textBoxEmail[i / 4].Text = Licence[i + 2];
- Controls.Add(textBoxEmail[i / 4]);
- textBoxExpiredDate[i / 4] = new TextBox();
- textBoxExpiredDate[i / 4].Location = new Point(216, 34 * (i / 4 + 1) + 24);
- textBoxExpiredDate[i / 4].Size = new Size(150, 30);
- textBoxExpiredDate[i / 4].Text = Licence[i + 3];
- Controls.Add(textBoxExpiredDate[i / 4]);
- textBoxSteam64id[i / 4] = new TextBox();
- textBoxSteam64id[i / 4].Location = new Point(374, 34 * (i / 4 + 1) + 24);
- textBoxSteam64id[i / 4].Size = new Size(110, 30);
- textBoxSteam64id[i / 4].Text = Licence[i];
- Controls.Add(textBoxSteam64id[i / 4]);
- buttonDelete[i / 4] = new CustomButton(i / 4);
- buttonDelete[i / 4].Location = new Point(494, 34 * (i / 4 + 1) + 24);
- buttonDelete[i / 4].Size = new Size(30, 24);
- buttonDelete[i / 4].Text = "-";
- /////////////////////////////////////////////////////////////////////////////////
- buttonDelete[i / 4].Index = 2;
- ////////////////////////////////////////////////////////////////////////////////
- buttonDelete[i / 4].Click += new System.EventHandler(this.Licence_Delete_Click);
- Controls.Add(buttonDelete[i / 4]);
- LicenceNumber++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement