Advertisement
Guest User

Untitled

a guest
May 31st, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.12 KB | None | 0 0
  1.  for (int i = 1; i + 4 <= Licence.Length; i += 4)
  2.                 {
  3.                     textBoxName[i / 4] = new TextBox();
  4.                     textBoxName[i / 4].Location = new Point(4, 34 * (i / 4 + 1) + 24);
  5.                     textBoxName[i / 4].Size = new Size(100, 30);
  6.                     textBoxName[i / 4].Text = Licence[i + 1];
  7.                     Controls.Add(textBoxName[i / 4]);
  8.  
  9.                     textBoxEmail[i / 4] = new TextBox();
  10.                     textBoxEmail[i / 4].Location = new Point(108, 34 * (i / 4 + 1) + 24);
  11.                     textBoxEmail[i / 4].Size = new Size(100, 30);
  12.                     textBoxEmail[i / 4].Text = Licence[i + 2];
  13.                     Controls.Add(textBoxEmail[i / 4]);
  14.  
  15.                     textBoxExpiredDate[i / 4] = new TextBox();
  16.                     textBoxExpiredDate[i / 4].Location = new Point(216, 34 * (i / 4 + 1) + 24);
  17.                     textBoxExpiredDate[i / 4].Size = new Size(150, 30);
  18.                     textBoxExpiredDate[i / 4].Text = Licence[i + 3];
  19.                     Controls.Add(textBoxExpiredDate[i / 4]);
  20.  
  21.                     textBoxSteam64id[i / 4] = new TextBox();
  22.                     textBoxSteam64id[i / 4].Location = new Point(374, 34 * (i / 4 + 1) + 24);
  23.                     textBoxSteam64id[i / 4].Size = new Size(110, 30);
  24.                     textBoxSteam64id[i / 4].Text = Licence[i];
  25.                     Controls.Add(textBoxSteam64id[i / 4]);
  26.  
  27.                     buttonDelete[i / 4] = new CustomButton(i / 4);
  28.                     buttonDelete[i / 4].Location = new Point(494, 34 * (i / 4 + 1) + 24);
  29.                     buttonDelete[i / 4].Size = new Size(30, 24);
  30.                     buttonDelete[i / 4].Text = "-";
  31.                     /////////////////////////////////////////////////////////////////////////////////
  32.                      buttonDelete[i / 4].Index = 2;
  33.                     ////////////////////////////////////////////////////////////////////////////////
  34.                     buttonDelete[i / 4].Click += new System.EventHandler(this.Licence_Delete_Click);
  35.                     Controls.Add(buttonDelete[i / 4]);
  36.  
  37.                     LicenceNumber++;
  38.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement