Skip to content

Commit 75ed544

Browse files
committed
Improvements
1 parent 4532038 commit 75ed544

21 files changed

Lines changed: 882 additions & 2127 deletions

XexToolGUI/About.Designer.cs

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

XexToolGUI/About.cs

Lines changed: 23 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,120 +1,65 @@
11
using System;
22
using System.Collections.Generic;
33
using System.ComponentModel;
4+
using System.Data;
45
using System.Drawing;
56
using System.IO;
67
using System.Linq;
7-
using System.Reflection;
8+
using System.Text;
89
using System.Threading.Tasks;
910
using System.Windows.Forms;
1011

1112
namespace XexToolGUI
1213
{
13-
partial class About : Form
14-
{
15-
System.Media.SoundPlayer player { get; set; }
14+
public partial class About : Form
15+
{
16+
System.Media.SoundPlayer player { get; set; }
1617
public About()
1718
{
1819
InitializeComponent();
1920
player = new System.Media.SoundPlayer(new MemoryStream(Properties.Resources.About_sound));
2021
player.PlayLooping();
21-
Text = "Info XexTool GUI";
22-
labelProductName.Text = "XexToolGUI for xorloser's xextool";
23-
labelVersion.Text = String.Format("Version {0}", AssemblyVersion);
24-
labelCopyright.Text = "Copyright © Serenity 2022";
25-
labelCompanyName.Text = "Thanks to:";
26-
textBoxDescription.Text = "Made By mLoaD \r\n xorloser for your Program and your Hard work \r\n Open Sourced By Serenity.";
2722
}
2823

29-
#region Assembly Attribute Accessors
30-
31-
public string AssemblyTitle
24+
private void XClose_Click(object sender, EventArgs e)
3225
{
33-
get
26+
if (player != null)
3427
{
35-
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
36-
if (attributes.Length > 0)
37-
{
38-
AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute)attributes[0];
39-
if (titleAttribute.Title != "")
40-
{
41-
return titleAttribute.Title;
42-
}
43-
}
44-
return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);
28+
player.Stop();
29+
player = null;
4530
}
46-
}
31+
Close();
32+
checker();
4733

48-
public string AssemblyVersion
49-
{
50-
get
51-
{
52-
return Assembly.GetExecutingAssembly().GetName().Version.ToString();
53-
}
5434
}
55-
56-
public string AssemblyProduct
35+
void checker()
5736
{
58-
get
37+
if(Program.IDCScript != null)
5938
{
60-
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false);
61-
if (attributes.Length == 0)
62-
{
63-
return "";
64-
}
65-
return ((AssemblyProductAttribute)attributes[0]).Product;
39+
Program.IDCScript.Show();
6640
}
67-
}
68-
69-
public string AssemblyCopyright
70-
{
71-
get
41+
else if(Program.xml != null)
7242
{
73-
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
74-
if (attributes.Length == 0)
75-
{
76-
return "";
77-
}
78-
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
43+
Program.xml.Show();
7944
}
80-
}
81-
82-
public string AssemblyCompany
83-
{
84-
get
45+
else if (Program.Dump != null)
8546
{
86-
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false);
87-
if (attributes.Length == 0)
88-
{
89-
return "";
90-
}
91-
return ((AssemblyCompanyAttribute)attributes[0]).Company;
47+
Program.Dump.Show();
9248
}
93-
}
94-
#endregion
95-
96-
private void okButton_Click(object sender, EventArgs e)
97-
{
98-
Close();
99-
Program.xexgui.Show();
100-
Program.About = null;
101-
if(player != null)
49+
if(Program.IDCScript == null && Program.xml == null && Program.Dump == null)
10250
{
103-
player.Stop();
104-
player = null;
51+
Program.xexgui.Show();
52+
Program.Info = null;
10553
}
10654
}
107-
108-
private void About_FormClosing(object sender, FormClosingEventArgs e)
55+
private void info_FormClosing(object sender, FormClosingEventArgs e)
10956
{
110-
Program.xexgui.Show();
111-
Program.About = null;
112-
11357
if (player != null)
11458
{
11559
player.Stop();
11660
player = null;
11761
}
62+
checker();
11863
}
11964
}
12065
}

0 commit comments

Comments
 (0)