private void m_managerServer_Click(object sender, EventArgs e) { net.StopClient(); state = ServerState.ManagerServer; net.Connect(m_managerIp.Text, Convert.ToInt32(m_managerport.Text)); net.OnConnected += Net_OnConnected; net.OnReceived += Net_OnReceived; }