This repository has been archived by the owner on May 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
About.xaml.cs
49 lines (43 loc) · 1.63 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
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
namespace MapleRIL
{
/// <summary>
/// Interaction logic for About.xaml
/// </summary>
public partial class About : Window
{
public About(MainWindow mw)
{
InitializeComponent();
string i = String.Format(@"MapleRIL: MapleStory Region Item Lookup
{0}
(c) 2017 Nicholas Tay / ""Nexerq"" <nexerq@gmail.com>.
Licensed under the zlib/libpng license.
Full license text can be found in the root of the repository.", mw.FriendlyAppVersion);
infoBlock.Text = i;
System.Reflection.Assembly mlib = typeof(MapleLib.WzLib.WzFile).Assembly;
FileVersionInfo mlibFvi = FileVersionInfo.GetVersionInfo(mlib.Location);
string o = String.Format(@"MapleRIL also utilizes libraries from other open source projects, including:
MapleLib v{0} (uses WZ component(s))
{1}", $"{mlibFvi.ProductMajorPart}.{mlibFvi.ProductMinorPart}.{mlibFvi.ProductBuildPart}", mlibFvi.LegalCopyright);
otherBlock.Text = o;
foreach (var file in mw.SourceWzs.Values)
displayListBox.Items.Add($"{mw.SourceRegion}: {file.FilePath}");
foreach (var file in mw.TargetWzs.Values)
displayListBox.Items.Add($"{mw.TargetRegion}: {file.FilePath}");
}
}
}