private void buttonServerStart_Click(object sender, EventArgs e) { try { this._neuroLog.WriteFormat("Starting Server", "Port {0}", this.textServerPort.Text); ServerForm sf = new ServerForm(int.Parse(this.textServerPort.Text)); sf.ShowDialog(); this._neuroLog.Write("Server Closed", "All Good"); } catch (Exception ex) { this._neuroLog.WriteFormat("Client Terminated with Exception", "Message: {0}\n\nStack Trace:\n", ex.Message, ex.StackTrace); MessageBox.Show(ex.Message, "Shoot! An Error Occured", MessageBoxButtons.OK, MessageBoxIcon.Error); } }