private void button1_Click(object sender, EventArgs e) { Login login = (Login)constuctlogin; WerewolfCommand wcmd = new WerewolfCommand(); wcmd.Action = CommandEnum.SignOut; wcmd.Payloads = new Dictionary <string, string>() { { "Server", login.GetServer() } }; controller.ActionPerformed(wcmd); login.Show(); this.Hide(); BtnJoin.Show(); LogoutPanel.Visible = false; this.BackColor = Color.Gainsboro; GBPlayers.ForeColor = Color.Black; GBChat.ForeColor = Color.Black; GBAction.ForeColor = Color.Black; GBStatus.ForeColor = Color.Black; BtnManuLoout.ForeColor = Color.Black; if (soundstop2.Visible == true) { soundstop.Visible = true; } else { soundplayloop.Visible = true; soundstop.Visible = false; } soundstop2.Visible = false; soundplayloop2.Visible = false; }
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { Login loginForm = (Login)_loginForm; WerewolfCommand wcmd = new WerewolfCommand(); wcmd.Action = WerewolfCommand.CommandEnum.SignOut; wcmd.Payloads = new Dictionary <string, string>() { { "Server", loginForm.GetServer() } }; controller.ActionPerformed(wcmd); }
private void BtnSignOut_Click(object sender, EventArgs e) { Login login = (Login)_loginconstruct; WerewolfCommand wcmd = new WerewolfCommand(); wcmd.Action = WerewolfCommand.CommandEnum.SignOut; wcmd.Payloads = new Dictionary <string, string>() { { "Server", login.GetServer() } }; controller.ActionPerformed(wcmd); }
/* private void button4_Click(object sender, EventArgs e) * { * Login login = (Login)constuctlogin; * WerewolfCommand wcmd = new WerewolfCommand(); * wcmd.Action = CommandEnum.SignOut; * wcmd.Payloads = new Dictionary<string, string>() { { "Server", login.GetServer() } }; * controller.ActionPerformed(wcmd); * //player.controls.stop(); * login.Show(); * this.Hide(); * BtnJoin.Show(); * panel1.Visible = false; * this.BackColor = Color.Gainsboro; * GBPlayers.ForeColor = Color.Black; * GBChat.ForeColor = Color.Black; * GBAction.ForeColor = Color.Black; * GBStatus.ForeColor = Color.Black; * label3.ForeColor = Color.Black; * }*/ /*private void TbChatBox_TextChanged(object sender, EventArgs e) * { * _MouseDown = true; * if (_MouseDown) * { * GBChat.Size = new Size(325, 370); * GBChat.Location = new Point(20, 30); * * TbChatBox.Location = new Point(19, 23); * TbChatBox.Size = new Size(284, 299); * * TbChatInput.Location = new Point(19, 325); * } * else * * }*/ private void button1_Click_1(object sender, EventArgs e) { Login login = (Login)constuctlogin; WerewolfCommand wcmd = new WerewolfCommand(); wcmd.Action = CommandEnum.SignOut; wcmd.Payloads = new Dictionary <string, string>() { { "Server", login.GetServer() } }; controller.ActionPerformed(wcmd); //player.controls.stop(); login.Show(); this.Hide(); BtnJoin.Show(); panel1.Visible = false; this.BackColor = Color.Gainsboro; GBPlayers.ForeColor = Color.Black; GBChat.ForeColor = Color.Black; GBAction.ForeColor = Color.Black; GBStatus.ForeColor = Color.Black; label3.ForeColor = Color.Black; }