-
Notifications
You must be signed in to change notification settings - Fork 0
/
ServerWaiting.cs
47 lines (45 loc) · 1.36 KB
/
ServerWaiting.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
namespace Caro_Nhom8
{
// Đăng kí
public partial class MainForm
{
#region ServerWaiting
void OPenWaiting()
{
this.Size = new Size(755, 658);
this.MaximumSize = new Size(755, 658);
this.MinimumSize = new Size(755, 658);
grb_Waiting.Dock = DockStyle.Fill;
grb_Login.Visible = false;
grb_SignUp.Visible = false;
grb_Info.Visible = false;
grb_Waiting.Visible = true;
grb_ClientInfo.Visible = false;
grb_ComputerInfo.Visible = false;
grb_ServerInfo.Visible = false;
grb_ForgetPassword.Visible = false;
grb_ChangeInfo.Visible = false;
grb_Setting.Visible = false;
grb_ChooseAvatar.Visible = false;
panel_PlayArea.Dock = DockStyle.None;
panel_PlayArea.Visible = false;
}
private void btn_CancelWaitingPlayer_Click(object sender, EventArgs e)
{
playSFX();
this.Invoke((MethodInvoker)delegate
{
try
{
server!.Stop();
server.Dispose();
}
catch (Exception)
{
}
OpenServerInfo();
});
}
#endregion
}
}