示例#1
0
 public SocketClient(Form1 form,string inRemoteIpAddr, int inRemotePortNum)
 {
     this._RemoteIpAddress = inRemoteIpAddr;
     this._RemotePortNumber = inRemotePortNum;
     f = form;
     setListBox = f.addListBoxString;
 }
示例#2
0
 public SocketClient(Form1 form, string inRemoteIpAddr, int inRemotePortNum)
 {
     this._RemoteIpAddress  = inRemoteIpAddr;
     this._RemotePortNumber = inRemotePortNum;
     f          = form;
     setListBox = f.addListBoxString;
 }
示例#3
0
文件: IM.cs 项目: atree1987/MyWorks
 private void SetListBoxValue(string value)
 {
     if (this.listBox1.InvokeRequired)
     {
         SetListBox sbox = new SetListBox(SetListBoxValue);
         listBox1.Invoke(sbox, value);
     } 
     else 
     {
             listBox1.Items.Add(value);
     }
 }
示例#4
0
文件: IM.cs 项目: ylan2009/MyWorks
 private void SetListBoxValue(string value)
 {
     if (this.listBox1.InvokeRequired)
     {
         SetListBox sbox = new SetListBox(SetListBoxValue);
         listBox1.Invoke(sbox, value);
     }
     else
     {
         listBox1.Items.Add(value);
     }
 }