示例#1
0
 public MainWindow()
 {
     InitializeComponent();
     server = new Server(this);
     buttonStop.IsEnabled = false;
     statusWindow = textStatus;
     mainWindow = this;
 }
示例#2
0
 public Server(MainWindow window)
 {
     this.tcpListener = new TcpListener(IPAddress.Parse("0.0.0.0"), 4000);
     this.logger = new Logger();
 }