|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * |
|
5 * Redistribution and use in source and binary forms, with or without |
|
6 * modification, are permitted provided that the following conditions are met: |
|
7 * |
|
8 * - Redistributions of source code must retain the above copyright notice, |
|
9 * this list of conditions and the following disclaimer. |
|
10 * - Redistributions in binary form must reproduce the above copyright notice, |
|
11 * this list of conditions and the following disclaimer in the documentation |
|
12 * and/or other materials provided with the distribution. |
|
13 * - Neither the name of Nokia Corporation nor the names of its contributors |
|
14 * may be used to endorse or promote products derived from this software |
|
15 * without specific prior written permission. |
|
16 * |
|
17 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
|
18 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
|
19 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
|
20 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
|
21 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
|
22 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
|
23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
|
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
|
25 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
|
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
|
27 * POSSIBILITY OF SUCH DAMAGE. |
|
28 * |
|
29 * Initial Contributors: |
|
30 * Nokia Corporation - initial contribution. |
|
31 * |
|
32 * Contributors: |
|
33 * |
|
34 * Description: |
|
35 * |
|
36 */ |
|
37 |
|
38 using System; |
|
39 using System.Drawing; |
|
40 using System.Collections; |
|
41 using System.ComponentModel; |
|
42 using System.Windows.Forms; |
|
43 using HeapLib.Constants; |
|
44 |
|
45 namespace HeapUiLib.Dialogs |
|
46 { |
|
47 public class HeapViewerAboutDialog : System.Windows.Forms.Form |
|
48 { |
|
49 #region Windows Form |
|
50 private System.Windows.Forms.Label label1; |
|
51 private System.Windows.Forms.Label iLbl_Version; |
|
52 private System.Windows.Forms.Label iLbl_Copyright; |
|
53 private System.ComponentModel.Container components = null; |
|
54 #endregion |
|
55 |
|
56 #region Constructors & destructor |
|
57 public HeapViewerAboutDialog() |
|
58 { |
|
59 InitializeComponent(); |
|
60 } |
|
61 |
|
62 protected override void Dispose( bool disposing ) |
|
63 { |
|
64 if( disposing ) |
|
65 { |
|
66 if(components != null) |
|
67 { |
|
68 components.Dispose(); |
|
69 } |
|
70 } |
|
71 base.Dispose( disposing ); |
|
72 } |
|
73 #endregion |
|
74 |
|
75 #region Windows Form Designer generated code |
|
76 /// <summary> |
|
77 /// Required method for Designer support - do not modify |
|
78 /// the contents of this method with the code editor. |
|
79 /// </summary> |
|
80 private void InitializeComponent() |
|
81 { |
|
82 this.label1 = new System.Windows.Forms.Label(); |
|
83 this.iLbl_Version = new System.Windows.Forms.Label(); |
|
84 this.iLbl_Copyright = new System.Windows.Forms.Label(); |
|
85 this.SuspendLayout(); |
|
86 // |
|
87 // label1 |
|
88 // |
|
89 this.label1.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|
90 this.label1.Location = new System.Drawing.Point(12, 9); |
|
91 this.label1.Name = "label1"; |
|
92 this.label1.Size = new System.Drawing.Size(336, 16); |
|
93 this.label1.TabIndex = 3; |
|
94 this.label1.Text = "Heap Analyser"; |
|
95 this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
96 // |
|
97 // iLbl_Version |
|
98 // |
|
99 this.iLbl_Version.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|
100 this.iLbl_Version.Location = new System.Drawing.Point(12, 45); |
|
101 this.iLbl_Version.Name = "iLbl_Version"; |
|
102 this.iLbl_Version.Size = new System.Drawing.Size(336, 16); |
|
103 this.iLbl_Version.TabIndex = 4; |
|
104 this.iLbl_Version.Text = "v0.99"; |
|
105 this.iLbl_Version.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
106 // |
|
107 // iLbl_Copyright |
|
108 // |
|
109 this.iLbl_Copyright.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|
110 this.iLbl_Copyright.Location = new System.Drawing.Point(12, 68); |
|
111 this.iLbl_Copyright.Name = "iLbl_Copyright"; |
|
112 this.iLbl_Copyright.Size = new System.Drawing.Size(378, 35); |
|
113 this.iLbl_Copyright.TabIndex = 1; |
|
114 this.iLbl_Copyright.Text = "Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). All rights rese" + |
|
115 "rved."; |
|
116 this.iLbl_Copyright.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
117 // |
|
118 // HeapViewerAboutDialog |
|
119 // |
|
120 this.AutoScaleBaseSize = new System.Drawing.Size(5, 14); |
|
121 this.ClientSize = new System.Drawing.Size(402, 112); |
|
122 this.Controls.Add(this.label1); |
|
123 this.Controls.Add(this.iLbl_Version); |
|
124 this.Controls.Add(this.iLbl_Copyright); |
|
125 this.Font = new System.Drawing.Font("Tahoma", 8.25F); |
|
126 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; |
|
127 this.MaximizeBox = false; |
|
128 this.MinimizeBox = false; |
|
129 this.Name = "HeapViewerAboutDialog"; |
|
130 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
|
131 this.Text = "About Heap Analyser"; |
|
132 this.Load += new System.EventHandler(this.HeapViewerAboutDialog_Load); |
|
133 this.ResumeLayout(false); |
|
134 |
|
135 } |
|
136 #endregion |
|
137 |
|
138 #region Event handlers |
|
139 private void HeapViewerAboutDialog_Load( object sender, EventArgs e ) |
|
140 { |
|
141 iLbl_Copyright.Text = HeapLibConstants.Copyright; |
|
142 iLbl_Version.Text = HeapLibConstants.Version; |
|
143 } |
|
144 #endregion |
|
145 } |
|
146 } |