private void ServerBoy() { new Thread(new ThreadStart(() => { TextBoxStreamWriter t = new TextBoxStreamWriter(this.Dispatcher, ServerOutputField); VenturaFTPClassName v = new VenturaFTPClassName(); v.GetStringFromGuy(); t.Close(); })).Start(); }
private void ClientBoy() { TextBoxStreamWriter t = new TextBoxStreamWriter(this.Dispatcher, ClientOutputField); Console.WriteLine("sendin"); //set stdout to go to textbox VenturaFTPClassName v = new VenturaFTPClassName(); v.SendStringToGuy(); t.Close(); }