Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Drawing;
- using System.Data;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- namespace LottoZiehung
- {
- public partial class UZiehung : UserControl
- {
- public UZiehung()
- {
- InitializeComponent();
- lblDatum.Text = DateTime.Now.ToLongDateString();
- int u = Ziehung.zwischenSpeicher.Count;
- int zwischen = 0;
- Label[] lbls = new Label[u];
- while (zwischen < u)
- {
- lbls[zwischen] = new Label();
- zwischen++;
- }
- int a = 0;
- int x = 31;
- while (a < Ziehung.zwischenSpeicher.Count)
- {
- lbls[a].Location = new Point(15 + a * x, 59);
- lbls[a].Size = new Size(25, 20);
- lbls[a].Text = Ziehung.zwischenSpeicher.ElementAt(a).ToString();
- this.Controls.Add(lbls[a]);
- a++;
- }
- Label lblZusatzZahlText = new Label();
- lblZusatzZahlText.Text = "Zusatzzahl:";
- lblZusatzZahlText.Size = new Size(67, 20);
- lblZusatzZahlText.Location = new Point(15 + (a * x), 39);
- this.Controls.Add(lblZusatzZahlText);
- Label lblZusatzZahl = new Label();
- lblZusatzZahl.Location = new Point(15 + (a * x) + 20, 59);
- lblZusatzZahl.Size = new Size(25, 20);
- lblZusatzZahl.Text = Ziehung.zusatzZahl.ToString();
- this.Controls.Add(lblZusatzZahl);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement