-
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
52 changed files
with
2,362 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System; | ||
|
||
namespace ClientCore.Exceptions | ||
{ | ||
public class ClientException : Exception | ||
{ | ||
public ClientException(string message, Exception innerException = null) : base(message, innerException) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Net; | ||
|
||
namespace ClientCore.Exceptions | ||
{ | ||
public class ClientRequestException : ClientException | ||
{ | ||
public HttpStatusCode? StatusCode { get; } | ||
|
||
public ClientRequestException(string message, HttpStatusCode? statusCode = null) : base(message) | ||
{ | ||
StatusCode = statusCode; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
DXMainClient/DXGUI/Multiplayer/QuickMatch/QuickMatchLobbyFooterPanel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using System; | ||
using ClientGUI; | ||
using Rampastring.XNAUI; | ||
|
||
namespace DTAClient.DXGUI.Multiplayer.QuickMatch; | ||
|
||
public class QuickMatchLobbyFooterPanel : INItializableWindow | ||
{ | ||
private XNAClientButton btnQuickMatch; | ||
private XNAClientButton btnLogout; | ||
private XNAClientButton btnExit; | ||
|
||
public EventHandler LogoutEvent; | ||
|
||
public EventHandler ExitEvent; | ||
|
||
public EventHandler QuickMatchEvent; | ||
|
||
public QuickMatchLobbyFooterPanel(WindowManager windowManager) : base(windowManager) | ||
{ | ||
} | ||
|
||
public override void Initialize() | ||
{ | ||
IniNameOverride = nameof(QuickMatchLobbyFooterPanel); | ||
base.Initialize(); | ||
|
||
btnLogout = FindChild<XNAClientButton>(nameof(btnLogout)); | ||
btnLogout.LeftClick += (_, _) => LogoutEvent?.Invoke(this, null); | ||
|
||
btnExit = FindChild<XNAClientButton>(nameof(btnExit)); | ||
btnExit.LeftClick += (_, _) => ExitEvent?.Invoke(this, null); | ||
|
||
btnQuickMatch = FindChild<XNAClientButton>(nameof(btnQuickMatch)); | ||
btnQuickMatch.LeftClick += (_, _) => QuickMatchEvent?.Invoke(this, null); | ||
} | ||
} |
Oops, something went wrong.