public NetworkController(MachineStatus initialStatus) { status = initialStatus; connection = new TcpClient("169.254.211.1", 23); ns = connection.GetStream(); updateMachineStatus(); }
public MainWindow() { InitializeComponent(); StatusText.Text = "System starting..."; status = new MachineStatus(); netController = new NetworkController(status); updateStatusText(); }