source: branches/eraser6/Eraser/AboutForm.Designer.cs @ 903

Revision 903, 2.8 KB checked in by lowjoel, 6 years ago (diff)

Ran Static code analysis on the Eraser project and implemented a few recommendations.

-Use more specific exceptions to allow code to determine the type of exception.
-Made GUIProgram implement IDisposable since the global mutex must be freed.
-Mde AboutForm? implement IDisposable, clearing the caching bitmaps on dispose.
-Made a few CommandLineProgram? functions static since they don't reference this.
-Name parameters/local with more unique, descriptive names for clarity.
-Use EventHandler?<EventArg?> instead of declaring our own delegate and event types as the type of the evenr handler

  • Property svn:keywords set to Id
Line 
1/*
2 * $Id$
3 * Copyright 2008 The Eraser Project
4 * Original Author: Joel Low <lowjoel@users.sourceforge.net>
5 * Modified By:
6 *
7 * This file is part of Eraser.
8 *
9 * Eraser is free software: you can redistribute it and/or modify it under the
10 * terms of the GNU General Public License as published by the Free Software
11 * Foundation, either version 3 of the License, or (at your option) any later
12 * version.
13 *
14 * Eraser is distributed in the hope that it will be useful, but WITHOUT ANY
15 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 *
18 * A copy of the GNU General Public License can be found at
19 * <http://www.gnu.org/licenses/>.
20 */
21
22namespace Eraser
23{
24    partial class AboutForm
25    {
26        /// <summary>
27        /// Required designer variable.
28        /// </summary>
29        private System.ComponentModel.IContainer components = null;
30
31        /// <summary>
32        /// Clean up any resources being used.
33        /// </summary>
34        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
35        protected override void Dispose(bool disposing)
36        {
37            if (disposing && (components != null))
38            {
39                components.Dispose();
40            }
41
42            ParentBitmap.Dispose();
43            AboutBitmap.Dispose();
44            AboutTextBitmap.Dispose();
45            DoubleBufferBitmap.Dispose();
46            base.Dispose(disposing);
47        }
48
49        #region Windows Form Designer generated code
50
51        /// <summary>
52        /// Required method for Designer support - do not modify
53        /// the contents of this method with the code editor.
54        /// </summary>
55        private void InitializeComponent()
56        {
57            this.components = new System.ComponentModel.Container();
58            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutForm));
59            this.animationTimer = new System.Windows.Forms.Timer(this.components);
60            this.SuspendLayout();
61            //
62            // animationTimer
63            //
64            this.animationTimer.Enabled = true;
65            this.animationTimer.Interval = 50;
66            this.animationTimer.Tick += new System.EventHandler(this.animationTimer_Tick);
67            //
68            // AboutForm
69            //
70            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
71            resources.ApplyResources(this, "$this");
72            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
73            this.Name = "AboutForm";
74            this.ShowInTaskbar = false;
75            this.Paint += new System.Windows.Forms.PaintEventHandler(this.AboutForm_Paint);
76            this.Click += new System.EventHandler(this.AboutForm_Click);
77            this.MouseLeave += new System.EventHandler(this.AboutForm_MouseLeave);
78            this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.AboutForm_MouseMove);
79            this.ResumeLayout(false);
80
81        }
82
83        #endregion
84
85        private System.Windows.Forms.Timer animationTimer;
86    }
87}
Note: See TracBrowser for help on using the repository browser.