Skip to content

Commit 2581676

Browse files
Third-Party library removal
1 parent edd37b1 commit 2581676

File tree

8 files changed

+567
-769
lines changed

8 files changed

+567
-769
lines changed

Form/Loader.csproj

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,10 @@
3535
<PropertyGroup />
3636
<PropertyGroup />
3737
<ItemGroup>
38-
<Reference Include="Guna.UI2, Version=2.0.4.6, Culture=neutral, PublicKeyToken=8b9d14aa5142e261, processorArchitecture=MSIL">
39-
<HintPath>packages\Guna.UI2.WinForms.2.0.4.6\lib\net472\Guna.UI2.dll</HintPath>
40-
</Reference>
4138
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
4239
<HintPath>packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
4340
</Reference>
4441
<Reference Include="PresentationFramework" />
45-
<Reference Include="Siticone.UI, Version=1.0.0.3, Culture=neutral, PublicKeyToken=da23b5286e22db85, processorArchitecture=MSIL">
46-
<SpecificVersion>False</SpecificVersion>
47-
<HintPath>bin\Debug\Siticone.UI.dll</HintPath>
48-
</Reference>
4942
<Reference Include="System" />
5043
<Reference Include="System.Design" />
5144
<Reference Include="System.Management" />

Form/Login.Designer.cs

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

Form/Login.cs

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using System.Diagnostics;
33
using System.Net;
44
using System.Windows.Forms;
5-
using static System.Windows.Forms.VisualStyles.VisualStyleElement.StartPanel;
65

76
namespace KeyAuth
87
{
@@ -18,12 +17,12 @@ public partial class Login : Form
1817
*/
1918

2019
public static api KeyAuthApp = new api(
21-
name: "", // Application Name
22-
ownerid: "", // Owner ID
23-
secret: "", // Application Secret
24-
version: "" // Application Version /*
25-
//path: @"Your_Path_Here" // (OPTIONAL) see tutorial here https://www.youtube.com/watch?v=I9rxt821gMk&t=1s
26-
);
20+
name: "Test-What", // Application Name
21+
ownerid: "7AvflSMyig", // Owner ID
22+
secret: "2d092ef5d0b5129357ce06a7eda4b05d785f77cac8ed98f26623a07cb8d4d6fb", // Application Secret
23+
version: "1.1" // Application Version /*
24+
//path: @"Your_Path_Here" // (OPTIONAL) see tutorial here https://www.youtube.com/watch?v=I9rxt821gMk&t=1s
25+
);
2726

2827
//This will display how long it took to make a request in ms. The param "type" is for "login", "register", "init", etc... but that is optional, as well as this function. Ideally you can just put a label or MessageBox.Show($"Request took {api.responseTime}"), but either works.
2928
// if you would like to use this method, simply put it in any function and pass the param ... ShowResponse("TypeHere");
@@ -38,11 +37,6 @@ public Login()
3837
InitializeComponent();
3938
}
4039

41-
private void siticoneControlBox1_Click(object sender, EventArgs e)
42-
{
43-
Environment.Exit(0);
44-
}
45-
4640
#region Misc References
4741
public static bool SubExist(string name)
4842
{
@@ -122,17 +116,17 @@ private void Login_Load(object sender, EventArgs e)
122116
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
123117
{
124118
KeyAuthApp.forgot(usernameField.Text, emailField.Text);
125-
status.Text = "Status: " + KeyAuthApp.response.message;
119+
MessageBox.Show("Status: " + KeyAuthApp.response.message);
126120
}
127121

128122
private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
129123
{
130124
KeyAuthApp.upgrade(usernameField.Text, keyField.Text); // success is set to false so people can't press upgrade then press login and skip logging in. it doesn't matter, since you shouldn't take any action on succesfull upgrade anyways. the only thing that needs to be done is the user needs to see the message from upgrade function
131-
status.Text = "Status: " + KeyAuthApp.response.message;
125+
MessageBox.Show("Status: " + KeyAuthApp.response.message);
132126
// don't login, because they haven't authenticated. this is just to extend expiry of user with new key.
133127
}
134128

135-
private void loginBtn_Click(object sender, EventArgs e)
129+
private void loginBtn_Click_1(object sender, EventArgs e)
136130
{
137131
KeyAuthApp.login(usernameField.Text, passwordField.Text);
138132
if (KeyAuthApp.response.success)
@@ -142,10 +136,10 @@ private void loginBtn_Click(object sender, EventArgs e)
142136
this.Hide();
143137
}
144138
else
145-
status.Text = "Status: " + KeyAuthApp.response.message;
139+
MessageBox.Show("Status: " + KeyAuthApp.response.message);
146140
}
147141

148-
private void guna2GradientButton2_Click(object sender, EventArgs e)
142+
private void registerBtn_Click(object sender, EventArgs e)
149143
{
150144
string email = this.emailField.Text;
151145
if (email == "Email (leave blank if none)")
@@ -161,10 +155,10 @@ private void guna2GradientButton2_Click(object sender, EventArgs e)
161155
this.Hide();
162156
}
163157
else
164-
status.Text = "Status: " + KeyAuthApp.response.message;
158+
MessageBox.Show("Status: " + KeyAuthApp.response.message);
165159
}
166160

167-
private void guna2GradientButton3_Click(object sender, EventArgs e)
161+
private void licenseBtn_Click(object sender, EventArgs e)
168162
{
169163
KeyAuthApp.license(keyField.Text);
170164
if (KeyAuthApp.response.success)
@@ -174,7 +168,17 @@ private void guna2GradientButton3_Click(object sender, EventArgs e)
174168
this.Hide();
175169
}
176170
else
177-
status.Text = "Status: " + KeyAuthApp.response.message;
171+
MessageBox.Show("Status: " + KeyAuthApp.response.message);
172+
}
173+
174+
private void closeBtn_Click(object sender, EventArgs e)
175+
{
176+
Environment.Exit(0);
177+
}
178+
179+
private void minBtn_Click(object sender, EventArgs e)
180+
{
181+
this.WindowState = FormWindowState.Minimized;
178182
}
179183
}
180184
}

Form/Login.resx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,7 @@
117117
<resheader name="writer">
118118
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119119
</resheader>
120-
<metadata name="siticoneDragControl1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
121-
<value>17, 17</value>
122-
</metadata>
123120
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
124121
<value>38</value>
125122
</metadata>
126-
<metadata name="siticoneShadowForm.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
127-
<value>184, 17</value>
128-
</metadata>
129123
</root>

0 commit comments

Comments
 (0)