Exemple #1
0
        private void ServerForm_Load(object sender, EventArgs e)
        {
            txtLocalIp.Text   = balObj.GetLocalIp();
            txtPortLocal.Text = balObj.LocalPort.ToString();
            txtIpRemote.Text  = balObj.GetLocalIp();

            socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
            socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);

            this.cbProducts.DataSource = balObj.GetProductNames();
        }
Exemple #2
0
        private void ServerForm_Load(object sender, EventArgs e)
        {
            ALGENT.Grupi_Algent_ServiceSoapClient algObj = new ALGENT.Grupi_Algent_ServiceSoapClient();

            txtLocalIp.Text   = balObj.GetLocalIp();
            txtPortLocal.Text = balObj.LocalPort.ToString();
            txtIpRemote.Text  = balObj.GetLocalIp();

            socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
            socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);

            this.cbProducts.DataSource = algObj._stock_products();
            cbProducts.DisplayMember   = "name";
        }
Exemple #3
0
 private void ConfigurationForm_Load(object sender, EventArgs e)
 {
     this.txtLoacalIp.Text  = balObj.GetLocalIp();
     this.txtLocalPort.Text = balObj.LocalPort.ToString();
 }