Skip to content

Commit 88ded74

Browse files
committed
VeNote v3.0.3
RUS: Что нового в версии 3.0.3: 1. Исправлены баги 2. Теперь можно изменять вид интерфейса 3. Автообновления. Его можно отключить в настройках. ENG: What's New in 3.0.3: 1. Fixed bugs 2. Now you can change the appearance of the interface 3. Auto-updates. It can be disabled in the settings.
1 parent a6d278d commit 88ded74

23 files changed

+3085
-836
lines changed

AboutBox.Designer.cs

Lines changed: 187 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AboutBox.cs

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.ComponentModel;
4+
using System.Drawing;
5+
using System.Linq;
6+
using System.Reflection;
7+
using System.Windows.Forms;
8+
9+
namespace VeNote
10+
{
11+
partial class AboutBox : Form
12+
{
13+
public AboutBox()
14+
{
15+
InitializeComponent();
16+
this.Text = String.Format("About {0}", AssemblyTitle);
17+
this.labelProductName.Text = AssemblyProduct;
18+
this.labelVersion.Text = String.Format("Version {0}", AssemblyVersion);
19+
this.labelCopyright.Text = AssemblyCopyright;
20+
this.labelCompanyName.Text = AssemblyCompany;
21+
}
22+
23+
#region Assembly Attribute Accessors
24+
25+
public string AssemblyTitle
26+
{
27+
get
28+
{
29+
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
30+
if (attributes.Length > 0)
31+
{
32+
AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute)attributes[0];
33+
if (titleAttribute.Title != "")
34+
{
35+
return titleAttribute.Title;
36+
}
37+
}
38+
return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);
39+
}
40+
}
41+
42+
public string AssemblyVersion
43+
{
44+
get
45+
{
46+
return Assembly.GetExecutingAssembly().GetName().Version.ToString();
47+
}
48+
}
49+
50+
public string AssemblyDescription
51+
{
52+
get
53+
{
54+
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false);
55+
if (attributes.Length == 0)
56+
{
57+
return "";
58+
}
59+
return ((AssemblyDescriptionAttribute)attributes[0]).Description;
60+
}
61+
}
62+
63+
public string AssemblyProduct
64+
{
65+
get
66+
{
67+
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false);
68+
if (attributes.Length == 0)
69+
{
70+
return "";
71+
}
72+
return ((AssemblyProductAttribute)attributes[0]).Product;
73+
}
74+
}
75+
76+
public string AssemblyCopyright
77+
{
78+
get
79+
{
80+
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
81+
if (attributes.Length == 0)
82+
{
83+
return "";
84+
}
85+
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
86+
}
87+
}
88+
89+
public string AssemblyCompany
90+
{
91+
get
92+
{
93+
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false);
94+
if (attributes.Length == 0)
95+
{
96+
return "";
97+
}
98+
return ((AssemblyCompanyAttribute)attributes[0]).Company;
99+
}
100+
}
101+
#endregion
102+
103+
private void AboutBox_Load(object sender, EventArgs e)
104+
{
105+
106+
}
107+
}
108+
}

0 commit comments

Comments
 (0)