Skip to content

Commit 74f778c

Browse files
richrich
authored andcommitted
Add project files.
1 parent 5ea39b0 commit 74f778c

File tree

9 files changed

+3453
-0
lines changed

9 files changed

+3453
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.31129.286
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "8-bit computer interface", "8-bit computer interface\8-bit computer interface.csproj", "{9ED64CE0-378A-44A3-9CC8-592C952C812A}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{9ED64CE0-378A-44A3-9CC8-592C952C812A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{9ED64CE0-378A-44A3-9CC8-592C952C812A}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{9ED64CE0-378A-44A3-9CC8-592C952C812A}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{9ED64CE0-378A-44A3-9CC8-592C952C812A}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {4A9C2F2D-19DF-418E-8EB5-309D4B176507}
24+
EndGlobalSection
25+
EndGlobal
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>WinExe</OutputType>
5+
<TargetFramework>net5.0-windows</TargetFramework>
6+
<UseWindowsForms>true</UseWindowsForms>
7+
<StartupObject>EightBitInterface.Program</StartupObject>
8+
<RootNamespace>EightBitInterface</RootNamespace>
9+
<Version>0.0.1</Version>
10+
<Description>This program is used to communicate with an Arduino with the corresponding project code. Interfacing with boards based on Ben Eater's 8-bit computer reference design.
11+
12+
This code and software is provided as-is. Use at your own risk!</Description>
13+
<AssemblyVersion>0.0.0.1</AssemblyVersion>
14+
<FileVersion>0.0.0.1</FileVersion>
15+
</PropertyGroup>
16+
17+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
18+
<WarningLevel>5</WarningLevel>
19+
</PropertyGroup>
20+
21+
<ItemGroup>
22+
<PackageReference Include="System.IO.Ports" Version="5.0.1" />
23+
</ItemGroup>
24+
25+
</Project>

8-bit computer interface/AboutBox.Designer.cs

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

0 commit comments

Comments
 (0)