示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
 public DataStreamListener(string name, ITransportManager transportManager, EndpointForm form)
     : base(name, transportManager)
 {
     _form = form;
 }
示例#4
0
 public DataStreamListener(string name, ITransportManager transportManager, EndpointForm form)
     : base(name, transportManager)
 {
     _form = form;
 }