Ejemplo n.º 1
0
 public SocketClient(Form1 form,string inRemoteIpAddr, int inRemotePortNum)
 {
     this._RemoteIpAddress = inRemoteIpAddr;
     this._RemotePortNumber = inRemotePortNum;
     f = form;
     setListBox = f.addListBoxString;
 }
Ejemplo n.º 2
0
 public SocketClient(Form1 form, string inRemoteIpAddr, int inRemotePortNum)
 {
     this._RemoteIpAddress  = inRemoteIpAddr;
     this._RemotePortNumber = inRemotePortNum;
     f          = form;
     setListBox = f.addListBoxString;
 }
Ejemplo n.º 3
0
 private void SetListBoxValue(string value)
 {
     if (this.listBox1.InvokeRequired)
     {
         SetListBox sbox = new SetListBox(SetListBoxValue);
         listBox1.Invoke(sbox, value);
     } 
     else 
     {
             listBox1.Items.Add(value);
     }
 }
Ejemplo n.º 4
0
 private void SetListBoxValue(string value)
 {
     if (this.listBox1.InvokeRequired)
     {
         SetListBox sbox = new SetListBox(SetListBoxValue);
         listBox1.Invoke(sbox, value);
     }
     else
     {
         listBox1.Items.Add(value);
     }
 }