-
Notifications
You must be signed in to change notification settings - Fork 2
/
About.xaml.cs
82 lines (73 loc) · 2.32 KB
/
About.xaml.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
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Windows;
using System.Windows.Navigation;
/// <remarks>
/// See Program.cs for license.
/// </remarks>
namespace TerrariaPixelArtHelper
{
/// <summary>
/// Interaction logic for About.xaml
/// </summary>
public partial class About : Window
{
public static List<LibraryData> Libraries = new List<LibraryData>()
{
new LibraryData()
{
Library = "CalcBinding",
Version = typeof(CalcBinding.Binding).Assembly.GetName().Version,
Author = "Alexander Zinchenko",
Url = new Uri("https://github.com/Alex141/CalcBinding")
},
new LibraryData()
{
Library = "FontAwesome5",
Version = typeof(FontAwesome5.WPF.FontAwesome).Assembly.GetName().Version,
Author = "Codinion",
Url = new Uri("https://github.com/MartinTopfstedt/FontAwesome5")
},
new LibraryData()
{
Library = "JeremyAnsel.ColorQuant",
Version = typeof(JeremyAnsel.ColorQuant.WuColorQuantizer).Assembly.GetName().Version,
Author = "Jérémy Ansel",
Url = new Uri("https://github.com/JeremyAnsel/JeremyAnsel.ColorQuant")
},
new LibraryData()
{
Library = "Math.NET Numerics",
Version = typeof(MathNet.Numerics.Constants).Assembly.GetName().Version,
Author = "Christoph Ruegg, Marcus Cuda, Jurgen Van Gael",
Url = new Uri("https://numerics.mathdotnet.com/")
},
new LibraryData()
{
Library = "PostSharp",
Version = typeof(PostSharp.Post).Assembly.GetName().Version,
Author = "PostSharp Technologies",
Url = new Uri("https://www.postsharp.net/")
},
new LibraryData()
{
Library = "WriteableBitmapEx",
Version = typeof(System.Windows.Media.Imaging.BitmapFactory).Assembly.GetName().Version,
Author = "Schulte Software Development",
Url = new Uri("https://github.com/teichgraf/WriteableBitmapEx")
}
};
public static Version Version = typeof(About).Assembly.GetName().Version;
public About() => this.InitializeComponent();
void OK_Click(object sender, RoutedEventArgs e) => this.Close();
void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e) => Process.Start(e.Uri.ToString());
}
public class LibraryData
{
public string Author { get; set; }
public string Library { get; set; }
public Version Version { get; set; }
public Uri Url { get; set; }
}
}