public TransportForm() { InitializeComponent(); XmlConfigurator.Configure(); _transportManagerA = new ProxyTransportManager(this, true); _transportManagerB = new ProxyTransportManager(this, false); _transportManagerA.SetProxy(_transportManagerB); _transportManagerB.SetProxy(_transportManagerA); _formA = new EndpointForm(this, TransportManagerA, true); _formB = new EndpointForm(this, TransportManagerB, false); _formA.Text = "Client"; _formB.Text = "Server"; _formA.Show(); _formB.Show(); this.Location = new Point(400, 100); _formA.Location = new Point(100, 100); _formB.Location = new Point(800, 100); }
public DataStreamListener(string name, ITransportManager transportManager, EndpointForm form) : base(name, transportManager) { _form = form; }