private void StartBTN_Click(object sender, EventArgs e) { try { if (m_server != null) { m_server.Stop(); m_server = null; } m_server = new Server(ListenerUrlTB.Text, ServerUrlTB.Text); m_server.Start(); StopBTN.Enabled = true; } catch (Exception exception) { GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception); } }