public void Close() { if (m_Game != null) { m_Game.Exit(); } m_CheckForMessages.Stop(); m_CheckForMessages.Dispose(); m_ClientForm.Close(); m_Stream.Close(); m_Reader.Close(); m_Writer.Close(); tcpClient.Close(); m_UDPClient.Close(); }
private void signInBtn_Click(object sender, EventArgs e) { new Home().Show(); UserForm.Close(); this.Close(); }