private void ServerPipe_ServerClosed(object sender, EventArgs e) { ServerPipe.ServerClosed -= ServerPipe_ServerClosed; ServerPipe.ServerClosed -= ServerPipe_ServerClosed; ServerPipe = null; }
private void ServerStartButton_Click(object sender, RoutedEventArgs e) { ServerPipe = new ServerPipe(this); ServerPipe.ServerClosed += ServerPipe_ServerClosed; ServerPipe.ClientDisconnected += ServerPipe_ClientDisconnected; }