Skip to content

Commit 31a71fe

Browse files
committed
Dodaj pliki projektów.
1 parent efc1a8e commit 31a71fe

28 files changed

+17517
-0
lines changed

Auto Machine.sln

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2012
4+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Auto Machine", "Auto Machine\Auto Machine.csproj", "{42AE7204-A6DA-4F0F-AE6E-6AE9BDD8CF1C}"
5+
EndProject
6+
Global
7+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8+
Debug|Any CPU = Debug|Any CPU
9+
Release|Any CPU = Release|Any CPU
10+
EndGlobalSection
11+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
12+
{42AE7204-A6DA-4F0F-AE6E-6AE9BDD8CF1C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
13+
{42AE7204-A6DA-4F0F-AE6E-6AE9BDD8CF1C}.Debug|Any CPU.Build.0 = Debug|Any CPU
14+
{42AE7204-A6DA-4F0F-AE6E-6AE9BDD8CF1C}.Release|Any CPU.ActiveCfg = Release|Any CPU
15+
{42AE7204-A6DA-4F0F-AE6E-6AE9BDD8CF1C}.Release|Any CPU.Build.0 = Release|Any CPU
16+
EndGlobalSection
17+
GlobalSection(SolutionProperties) = preSolution
18+
HideSolutionNode = FALSE
19+
EndGlobalSection
20+
EndGlobal

Auto Machine/About.Designer.cs

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

Auto Machine/About.cs

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
using System;
2+
using System.Resources;
3+
using System.Reflection;
4+
using System.Drawing;
5+
using System.Diagnostics;
6+
using System.Windows.Forms;
7+
8+
namespace Auto_Machine
9+
{
10+
public partial class About : Form
11+
{
12+
#region Language
13+
private void SetLanguage(string language)
14+
{
15+
ResourceManager appLanguage = new ResourceManager("Auto_Machine.Resources.language_" + language, Assembly.GetExecutingAssembly());
16+
label_version.Text = appLanguage.GetString("Version");
17+
label_contact.Text = appLanguage.GetString("Contact");
18+
}
19+
#endregion
20+
21+
#region Main
22+
private AutoMachine MainForm;
23+
public About(AutoMachine MainForm)
24+
{
25+
InitializeComponent();
26+
this.MainForm = MainForm;
27+
SetLanguage(MainForm.language);
28+
}
29+
private void About_Load(object sender, EventArgs e)
30+
{
31+
MainForm.aboutopen = true;
32+
int x = Screen.PrimaryScreen.WorkingArea.Width - this.Width - 8;
33+
int y = Screen.PrimaryScreen.WorkingArea.Height - this.Height - 7;
34+
this.Location = new Point(x, y);
35+
label_version.Text = label_version.Text + (": " + version);
36+
label_copyright.Text = copyright;
37+
}
38+
private void About_FormClosing(object sender, FormClosingEventArgs e)
39+
{
40+
MainForm.aboutopen = false;
41+
}
42+
private void linkLabel_contact_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
43+
{
44+
Process.Start("mailto:tinexcs@gmail.com");
45+
}
46+
#endregion
47+
48+
#region References
49+
public string version
50+
{
51+
get
52+
{
53+
return Assembly.GetExecutingAssembly().GetName().Version.ToString();
54+
}
55+
}
56+
public string copyright
57+
{
58+
get
59+
{
60+
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
61+
if (attributes.Length == 0)
62+
{
63+
return "";
64+
}
65+
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
66+
}
67+
}
68+
#endregion
69+
70+
private void button_exit_Click(object sender, EventArgs e)
71+
{
72+
Close();
73+
}
74+
}
75+
}

0 commit comments

Comments
 (0)