public Form1() { InitializeComponent(); this.BackColor = AchtergrondKleur; string[] maandAfkortingen = { "Jan", "Feb", "Maa", "Apr", "Mei", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec" }; for (int maand = 0; maand < 12; maand++) { labelMaand[maand] = new Label(); labelMaand[maand].Size = new Size(28, 13); labelMaand[maand].Location = new Point(62 + (maand % 6) * 28, 14 + (maand / 6) * 20); labelMaand[maand].Cursor = Cursors.Hand; labelMaand[maand].Tag = maand; labelMaand[maand].Text = maandAfkortingen[maand]; labelMaand[maand].MouseClick += new MouseEventHandler(labelMaand_MouseClick); this.Controls.Add(labelMaand[maand]); } InhoudAgenda.LeesInhoud(); Weergave.Initialiseren(this); this.Text = Weergave.KopTekst; Weergave.Gewisseld += new EventHandler(Weergave_Gewisseld); wekker = new Wekker(this); wekker.Location = new Point(740, 0); this.Controls.Add(wekker); wekker.BringToFront(); wekker.LooptAf += new EventHandler(wekker_LooptAf); }
public FormWekker(Wekker wekker, Form1 form1) { InitializeComponent(); this.wekker = wekker; this.BackColor = form1.BackColor; this.DesktopLocation = form1.DesktopLocation + new Size(686, 100); }