예제 #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
파일: EndpointForm.cs 프로젝트: gwupe/Gwupe
 public DataStreamListener(string name, ITransportManager transportManager, EndpointForm form)
     : base(name, transportManager)
 {
     _form = form;
 }