Skip to content

Commit

Permalink
PUSH
Browse files Browse the repository at this point in the history
-> New colors for install form
-> Database creation is done
-> Fixed buggy animations
-> Redesign session selector
-> Added a settings form
-> New design for server selector
-> Brand new design in hole app
  • Loading branch information
NaysKutzu committed Oct 6, 2023
1 parent 2c497d2 commit e26aa52
Show file tree
Hide file tree
Showing 22 changed files with 7,951 additions and 349 deletions.
7 changes: 6 additions & 1 deletion Forms/Controller/NewDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,17 @@ private void btnadddb_Click(object sender, EventArgs e)
if (response.StatusCode == HttpStatusCode.OK)
{
Program.Alert("Database created successfully!", FrmAlert.enmType.Succes);
this.Close();
FrmServerController x = new FrmServerController(ServerId);
x.Show();
this.Hide();
}
else
{
Program.Alert("Error while creating your database!", FrmAlert.enmType.Error);
Program.logger.Log(Managers.LogType.Error, "[Forms.Controller.NewDatabase.cs]: " + response.ErrorMessage);
FrmServerController x = new FrmServerController(ServerId);
x.Show();
this.Hide();
}
}
catch (Exception ex)
Expand Down
14 changes: 4 additions & 10 deletions Forms/FrmInstallTools.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Forms/FrmInstallTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ public static void Unzip()
else
{
Program.logger.Log(Managers.LogType.Error, "[Forms.FrmInstallTools.cs]: \nClient.zip not found for extraction.");
MessageBox.Show("Client.zip not found for extraction. \nTry again later","Addons",MessageBoxButtons.OK,MessageBoxIcon.Error);
MessageBox.Show("Client.zip not found for extraction. \nTry again later", "Addons", MessageBoxButtons.OK, MessageBoxIcon.Error);
Application.Exit();
}
}
catch (Exception ex)
{
Program.logger.Log(Managers.LogType.Info, "[Forms.FrmInstallTools.cs]: \n"+ex.Message);
Program.logger.Log(Managers.LogType.Info, "[Forms.FrmInstallTools.cs]: \n" + ex.Message);
MessageBox.Show("Client.zip faild extract. \nTry again later", "Addons", MessageBoxButtons.OK, MessageBoxIcon.Error);
Application.Exit();
}
Expand Down
3 changes: 0 additions & 3 deletions Forms/FrmInstallTools.resx
Original file line number Diff line number Diff line change
Expand Up @@ -6972,7 +6972,4 @@
<metadata name="DragController.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="AnimateWindow.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>149, 17</value>
</metadata>
</root>
6 changes: 0 additions & 6 deletions Forms/FrmLoading.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions Forms/FrmLoading.resx
Original file line number Diff line number Diff line change
Expand Up @@ -7142,9 +7142,6 @@
<metadata name="Elipse.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>436, 22</value>
</metadata>
<metadata name="AnimateWindow.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>293, 22</value>
</metadata>
<metadata name="LoaderElipse.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>557, 19</value>
</metadata>
Expand Down
78 changes: 36 additions & 42 deletions Forms/FrmLogin.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions Forms/FrmLogin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ private async void btnaddsession_Click(object sender, EventArgs e)
else
{
try
{
{
using HttpClient httpClient = new HttpClient();
httpClient.BaseAddress = new Uri(txtpanelurl.Text);
httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
Expand Down Expand Up @@ -59,7 +59,8 @@ private async void btnaddsession_Click(object sender, EventArgs e)
FrmSessions x = new FrmSessions();
x.Show();
this.Hide();
} catch (Exception ex)
}
catch (Exception ex)
{
Program.Alert("Login failed", FrmAlert.enmType.Error);
Program.logger.Log(Managers.LogType.Error, "[Forms.FrmLogin.cs]: \n" + ex.Message);
Expand All @@ -79,7 +80,7 @@ private async void btnaddsession_Click(object sender, EventArgs e)
else if ((int)response.StatusCode >= 500)
{
Program.Alert("Login Failed. Server returned an error.", FrmAlert.enmType.Error);
Program.logger.Log(Managers.LogType.Error, "[Forms.FrmLogin.cs]: \n" + $"Server returned an error ({ (int)response.StatusCode}): { response.ReasonPhrase}");
Program.logger.Log(Managers.LogType.Error, "[Forms.FrmLogin.cs]: \n" + $"Server returned an error ({(int)response.StatusCode}): {response.ReasonPhrase}");
}
else if (response.StatusCode == System.Net.HttpStatusCode.ServiceUnavailable ||
response.StatusCode == System.Net.HttpStatusCode.Forbidden)
Expand Down
3 changes: 0 additions & 3 deletions Forms/FrmLogin.resx
Original file line number Diff line number Diff line change
Expand Up @@ -6972,7 +6972,4 @@
<metadata name="DragController.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="AnimateWindow.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>149, 17</value>
</metadata>
</root>
Loading

0 comments on commit e26aa52

Please sign in to comment.