コード例 #1
0
 private void ServerPipe_ServerClosed(object sender, EventArgs e)
 {
     ServerPipe.ServerClosed -= ServerPipe_ServerClosed;
     ServerPipe.ServerClosed -= ServerPipe_ServerClosed;
     ServerPipe = null;
 }
コード例 #2
0
 private void ServerStartButton_Click(object sender, RoutedEventArgs e)
 {
     ServerPipe = new ServerPipe(this);
     ServerPipe.ServerClosed       += ServerPipe_ServerClosed;
     ServerPipe.ClientDisconnected += ServerPipe_ClientDisconnected;
 }