?lang_form? ?lang_select? ?lang_submit? ?lang_endform?
{HEADER END}
{BLAME START}

library

?curdirlinks? -

Blame information for rev 32

Line No. Rev Author Line
1 32 kaklik /*********************************************************************
2 *
3 * About Box for MPFS21
4 *
5 *********************************************************************
6 * FileName: AboutBox.cs
7 * Dependencies: Microsoft .NET Framework 2.0
8 * Processor: x86
9 * Complier: Microsoft Visual C# 2008 Express Edition
10 * Company: Microchip Technology, Inc.
11 *
12 * Software License Agreement
13 *
14 * This software is owned by Microchip Technology Inc. ("Microchip")
15 * and is supplied to you for use exclusively as described in the
16 * associated software agreement. This software is protected by
17 * software and other intellectual property laws. Any use in
18 * violation of the software license may subject the user to criminal
19 * sanctions as well as civil liability. Copyright 2008 Microchip
20 * Technology Inc. All rights reserved.
21 *
22 *
23 * THE SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT
24 * WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT
25 * LIMITATION, ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR A
26 * PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL
27 * MICROCHIP BE LIABLE FOR ANY INCIDENTAL, SPECIAL, INDIRECT OR
28 * CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF
29 * PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY OR SERVICES, ANY CLAIMS
30 * BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE
31 * THEREOF), ANY CLAIMS FOR INDEMNITY OR CONTRIBUTION, OR OTHER
32 * SIMILAR COSTS, WHETHER ASSERTED ON THE BASIS OF CONTRACT, TORT
33 * (INCLUDING NEGLIGENCE), BREACH OF WARRANTY, OR OTHERWISE.
34 *
35 *
36 * Author Date Comment
37 *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38 * Elliott Wood 4/17/2008 Original
39 ********************************************************************/
40 using System;
41 using System.Collections.Generic;
42 using System.ComponentModel;
43 using System.Drawing;
44 using System.Reflection;
45 using System.Windows.Forms;
46  
47 namespace MPFS21
48 {
49 partial class AboutBox : Form
50 {
51 public AboutBox()
52 {
53 InitializeComponent();
54 this.Text = String.Format("About {0}", AssemblyTitle);
55 this.labelProductName.Text = AssemblyProduct;
56 this.labelVersion.Text = String.Format("Version {0}", AssemblyVersion);
57 this.labelCopyright.Text = AssemblyCopyright;
58 this.labelCompanyName.Text = AssemblyCompany;
59 this.textBoxDescription.Text = AssemblyDescription;
60 }
61  
62 #region Assembly Attribute Accessors
63  
64 public string AssemblyTitle
65 {
66 get
67 {
68 object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
69 if (attributes.Length > 0)
70 {
71 AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute)attributes[0];
72 if (titleAttribute.Title != "")
73 {
74 return titleAttribute.Title;
75 }
76 }
77 return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);
78 }
79 }
80  
81 public string AssemblyVersion
82 {
83 get
84 {
85 return Assembly.GetExecutingAssembly().GetName().Version.ToString();
86 }
87 }
88  
89 public string AssemblyDescription
90 {
91 get
92 {
93 object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false);
94 if (attributes.Length == 0)
95 {
96 return "";
97 }
98 return ((AssemblyDescriptionAttribute)attributes[0]).Description;
99 }
100 }
101  
102 public string AssemblyProduct
103 {
104 get
105 {
106 object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false);
107 if (attributes.Length == 0)
108 {
109 return "";
110 }
111 return ((AssemblyProductAttribute)attributes[0]).Product;
112 }
113 }
114  
115 public string AssemblyCopyright
116 {
117 get
118 {
119 object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
120 if (attributes.Length == 0)
121 {
122 return "";
123 }
124 return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
125 }
126 }
127  
128 public string AssemblyCompany
129 {
130 get
131 {
132 object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false);
133 if (attributes.Length == 0)
134 {
135 return "";
136 }
137 return ((AssemblyCompanyAttribute)attributes[0]).Company;
138 }
139 }
140 #endregion
141 }
142 }
{BLAME END}
{FOOTER START}

Powered by WebSVN v2.8.3