private void Form1_Load(object sender, EventArgs e) { GDI = new GdiSystem(this); GDI.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; GDI.Graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit; GDI.Graphics.Clear(backgroundColor); GDI.UpdateWindow(); this.Height = panelToolbar.Bottom; tblTaskContainer.MouseWheel += TblTaskContainer_MouseWheel; this.ActiveControl = tblTaskContainer; loadConf(); refreshCountingState(); try { this.Location = settings.windowPosition; } catch { settings.Reset(); settings.Save(); } this.Location = settings.windowPosition; if (!settings.isExpanded) { btnFold.PerformClick(); } bgPaint = new SolidBrush(Color.FromArgb(settings.backgroundOptacy, Color.Black)); backgroundColor = Color.FromArgb(settings.backgroundOptacy, Color.Black); }
private void Form1_Load(object sender, EventArgs e) { gdi = new GdiSystem(this); init(); draw(); gdi.UpdateWindow(); }
private void Form1_Load(object sender, EventArgs e) { GDI = new GdiSystem(this); this.thisGraphics = GDI.Graphics; this.thisGraphics.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.Bilinear; this.thisGraphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.thisGraphics.Clear(Color.FromArgb(0x007f7f00)); if (File.Exists(tempFilename)) { loadTime(tempFilename); IsClockMode = false; } if (null != Program.requestFileInfo) { loadTime(Program.requestFileInfo.FullName); IsClockMode = false; } }
private void FrmNewsDialog_Load(object sender, EventArgs e) { gdi = new GdiSystem(this); draw(); gdi.UpdateWindow(); }
private void Form1_Load(object sender, EventArgs e) { gdi = new GdiSystem(this); backgroundWorker1.RunWorkerAsync(); }