-
-
Notifications
You must be signed in to change notification settings - Fork 250
/
Copy pathAboutBox1.cs
137 lines (124 loc) · 4.55 KB
/
AboutBox1.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
using System;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
using ARKBreedingStats.utils;
namespace ARKBreedingStats
{
partial class AboutBox1 : Form
{
public AboutBox1()
{
InitializeComponent();
Text = $"Info about {AssemblyTitle}";
labelProductName.Text = AssemblyProduct;
labelVersion.Text = $"Version {AssemblyVersion}";
labelCopyright.Text = AssemblyCopyright;
labelDescription.Text = AssemblyDescription;
textBoxContributors.Text = Contributors;
const string noticeFileName = "NOTICE.txt";
var dependenciesFilePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory,
noticeFileName);
TbDependencies.Text = File.Exists(dependenciesFilePath)
? File.ReadAllText(dependenciesFilePath)
: "see " + "https://raw.githubusercontent.com/cadon/ARKStatsExtractor/dev/ARKBreedingStats/" + noticeFileName;
}
#region Assemblyattributaccessoren
public string AssemblyTitle
{
get
{
var attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
if (attributes.Length > 0)
{
var titleAttribute = (AssemblyTitleAttribute)attributes[0];
if (!string.IsNullOrEmpty(titleAttribute.Title))
{
return titleAttribute.Title;
}
}
return Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);
}
}
public string AssemblyVersion => Application.ProductVersion;
public string AssemblyDescription
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false);
if (attributes.Length == 0)
{
return "";
}
return ((AssemblyDescriptionAttribute)attributes[0]).Description;
}
}
public string AssemblyProduct
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false);
if (attributes.Length == 0)
{
return "";
}
return ((AssemblyProductAttribute)attributes[0]).Product;
}
}
public string AssemblyCopyright
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
if (attributes.Length == 0)
{
return "";
}
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
}
}
#endregion
private void okButton_Click(object sender, EventArgs e)
{
Close();
}
private void linkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start(RepositoryInfo.RepositoryUrl);
}
private const string Contributors = @"Thanks for contributions, help and support to
* NakramR: coding, library, OCR, overlay
* Flachdachs: save file extractor, installer-version, style
* coldino: ARK-data, support
* VolatilesPulse: ARK-data, support
* qowyn: original save file extractor, ARK-data
* alex4401: save file extractor format updates
* Miragedmuk: save file extractor format updates
* aaron-williamson: file-syncing for cloud-services
* DelilahEve: auto updater
* DodoCooker: performance for large libraries
* Warstone: Kibble recipes
* tsebring: naming-generator
* maxime-paquatte: custom timer sounds
* hallipr: FTP save file import and Javascript name pattern support
* EmkioA: Cryopod import, listView tweaks
* dunger: fixes
* Myrmecoleon: extra species color region images
* Lunat1q: improved OCR
* ThatGamerBlue: species dividers in virtual listView
* Jaymei: ATLAS species data
* Shen: many ASA color region images
Translations:
* French by Vykan and Yanuut
* Italian by Zaffira and Spit-Biago
* German by cadon
* Spanish by KRIPT4
* Chinese (simplified) by MicheaBoab
* Russian by SoulSuspect
* Polish by alex4401
* Japanese by maririyuzu
* Portuguese Brazilian by llbranco
* Chinese (traditional) by abs6808
* Turkish by Tnc";
}
}