private void GraphForm_Load(object sender, EventArgs e) { int n = Math.Min(ngraphs, 15); Location = new Point(300 + n * 10, (n-1) * 30); int w = MdiParent.ClientSize.Width - 400, h = MdiParent.ClientSize.Height*3/4; Size = new Size(w, h); zoomCombo.Items.Add("25%"); zoomCombo.Items.Add("50%"); zoomCombo.Items.Add("75%"); int i = zoomCombo.Items.Add("100%"); zoomCombo.SelectedIndex = i; regtimer.Interval = 250; regtimer.Tick += delegate{ if (RegistryChecker.R[0] == 0) return; regtimer.Stop(); if (RegistryChecker.R[1] < 1 && RegistryChecker.R[93] < 1) { MessageBox.Show("Evaluation period has expired. Register the program to continue using it."); Close(); } }; regtimer.Start(); toolStripHeight = toolStrip.Size.Height; graph.SetEventWindow(Handle); timer.Interval = 380; timer.Tick += OnTimer; timer.Start(); animTimer.Interval = 50; animTimer.Tick += OnAnimationTimer; animTimer.Start(); toolStrip.Renderer = new SickToolStripRenderer(graph); }