private void button_StartServer_Click(object sender, RoutedEventArgs e) { m_server = new TCPServerGUI(); m_server.Closed += new EventHandler(GetServerButtonStatus); button_StartServer.IsEnabled = false; }