mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-22 22:09:12 +00:00
33 lines
870 B
C#
33 lines
870 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Shapes;
|
|
using System.Windows.Threading;
|
|
|
|
namespace Cosmos.VS.Debug {
|
|
public partial class MainWindow : Window {
|
|
|
|
public MainWindow() {
|
|
InitializeComponent();
|
|
|
|
PipeThread.DataPacketReceived += new Action<string>(PipeThread_DataPacketReceived);
|
|
var xServerThread = new Thread(PipeThread.ThreadStartServer);
|
|
xServerThread.Start();
|
|
}
|
|
|
|
void PipeThread_DataPacketReceived(string aData) {
|
|
listBox1.Items.Add(aData);
|
|
}
|
|
|
|
}
|
|
}
|