-
Notifications
You must be signed in to change notification settings - Fork 5
/
AboutBox1.cs
140 lines (125 loc) · 5.19 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
138
139
140
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Windows.Forms;
using System.Globalization;
using System.Threading;
namespace VTC
{
partial class AboutBoxZ : Form
{
public AboutBoxZ()
{
// uncomment next line to build for specifig language UI - useful if you have Windows installed in english but you want specific app UI
// Thread.CurrentThread.CurrentUICulture = new CultureInfo("sr-Cyrl");
InitializeComponent();
//this.Text = String.Format("About {0}", AssemblyTitle);
this.labelProductName.Text = AssemblyProduct;
this.labelVersion.Text = String.Format("Version {0}", AssemblyVersion);
this.labelCopyright.Text = AssemblyCopyright;
this.labelCompanyName.Text = AssemblyCompany;
this.richTextBoxDescription.Text = "Copyright 2014-2022 Zlatko Babić"+
"\nLicensed under the Apache License, Version 2.0 (the 'License');"+
"\nyou may not use this file except in compliance with the License."+
"\nYou may obtain a copy of the License at"+
"\n http://www.apache.org/licenses/LICENSE-2.0 "+
"\nUnless required by applicable law or agreed to in writing, software"+
"\ndistributed under the License is distributed on an 'AS IS' BASIS,"+
"\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied."+
"\nSee the License for the specific language governing permissions and"+
"\nlimitations under the License."+
"\nFull license text is located in the same folder where you have installed VCT in file Copying.txt."+
"\n\nThis software uses FFmpeg binary as a wrapper to convert video and audio files."+
"\nFFmpeg 32-bit binary is provided with VCT. It is unaltered static build compiled by Zeranoe and downloaded from:"+
"\n http://ffmpeg.zeranoe.com/builds/win32/static/ "+
"\nIf you want to use newer version of FFmpeg, or the 64-bit one, or one that you compiled yourself, "+
"you must store that new ffmpeg.exe in the same folder as VCT.exe"+
"\n\nThis app uses icon from http://hadezign.com ."+
"\n\nPlay Icon made by Pixel perfect from www.flaticon.com ." +
"\n\nHelp is available in PDF document in the installation folder, or by clicking 'Help' button when on Transcode Tab.";
}
#region Assembly Attribute Accessors
public string AssemblyTitle
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
if (attributes.Length > 0)
{
AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute)attributes[0];
if (titleAttribute.Title != "")
{
return titleAttribute.Title;
}
}
return "Video Converter & Transcoder";
}
}
public string AssemblyVersion
{
get
{
return Assembly.GetExecutingAssembly().GetName().Version.ToString();
}
}
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;
}
}
public string AssemblyCompany
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false);
if (attributes.Length == 0)
{
return "";
}
return ((AssemblyCompanyAttribute)attributes[0]).Company;
}
}
#endregion
private void okButton_Click(object sender, EventArgs e)
{
this.Close();
}
private void tableLayoutPanel_Paint(object sender, PaintEventArgs e)
{
}
}
}