Skip to content

Commit b9a8b7f

Browse files
committed
add images, readme, etc.
1 parent 4fda14b commit b9a8b7f

38 files changed

+738
-300
lines changed

.github/FUNDING.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: ['https://www.buymeacoffee.com/ahaenggli', 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=S2F6JC7DGR548&source=url']# Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/img/screenshot_button.png

3.91 KB
Loading

.github/img/screenshot_button2.png

7.89 KB
Loading
16.8 KB
Loading

.github/img/screenshot_info.png

8.79 KB
Loading

.github/img/screenshot_settings.png

22 KB
Loading

AddIn/AboutForm.Designer.cs

+262
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AddIn/AboutForm.cs

+118
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
using ExcelAddIn_TableOfContents.Properties;
2+
using System;
3+
using System.Reflection;
4+
using System.Windows.Forms;
5+
6+
namespace ExcelAddIn_TableOfContents
7+
{
8+
public partial class AboutForm : Form
9+
{
10+
public AboutForm()
11+
{
12+
InitializeComponent();
13+
}
14+
15+
private void AboutForm_Load(object sender, EventArgs e)
16+
{
17+
lblProdukt.Text = AssemblyProduct;
18+
label3.Text = AssemblyCopyright;
19+
label5.Text = String.Format("Version {0}", AssemblyVersion);
20+
21+
checkBox1.Checked = Settings.Default.IsAutoUpdate;
22+
txtVersion.Text = Settings.Default.VersionUrl;
23+
txtDownload.Text = Settings.Default.UpdateUrl;
24+
}
25+
26+
private void btnSave_Click(object sender, EventArgs e)
27+
{
28+
Settings.Default.IsAutoUpdate = checkBox1.Checked;
29+
//Settings.Default.VersionUrl = txtVersion.Text;
30+
//Settings.Default.UpdateUrl = txtDownload.Text;
31+
32+
Settings.Default.Save();
33+
}
34+
35+
36+
37+
#region Assemblyattributaccessoren
38+
39+
public string AssemblyTitle
40+
{
41+
get
42+
{
43+
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
44+
if (attributes.Length > 0)
45+
{
46+
AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute)attributes[0];
47+
if (titleAttribute.Title != "")
48+
{
49+
return titleAttribute.Title;
50+
}
51+
}
52+
return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);
53+
}
54+
}
55+
56+
public string AssemblyVersion
57+
{
58+
get
59+
{
60+
return Assembly.GetExecutingAssembly().GetName().Version.ToString();
61+
}
62+
}
63+
64+
public string AssemblyDescription
65+
{
66+
get
67+
{
68+
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false);
69+
if (attributes.Length == 0)
70+
{
71+
return "";
72+
}
73+
return ((AssemblyDescriptionAttribute)attributes[0]).Description;
74+
}
75+
}
76+
77+
public string AssemblyProduct
78+
{
79+
get
80+
{
81+
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false);
82+
if (attributes.Length == 0)
83+
{
84+
return "";
85+
}
86+
return ((AssemblyProductAttribute)attributes[0]).Product;
87+
}
88+
}
89+
90+
public string AssemblyCopyright
91+
{
92+
get
93+
{
94+
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
95+
if (attributes.Length == 0)
96+
{
97+
return "";
98+
}
99+
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
100+
}
101+
}
102+
103+
public string AssemblyCompany
104+
{
105+
get
106+
{
107+
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false);
108+
if (attributes.Length == 0)
109+
{
110+
return "";
111+
}
112+
return ((AssemblyCompanyAttribute)attributes[0]).Company;
113+
}
114+
}
115+
#endregion
116+
117+
}
118+
}
File renamed without changes.

0 commit comments

Comments
 (0)