Example #1
0
 /// <summary>
 /// Delegated method of accessing UI elements in the threads
 /// </summary>
 private void Delegated_ClearList()
 {
     if (this.InvokeRequired)
     {
         ClearListDelegate d = new ClearListDelegate(Delegated_ClearList);
         this.Invoke(d);
     }
     else
     {
         ClearList();
     }
 }
Example #2
0
        public IPList(Console console)
        {
            InitializeComponent();

            _clear = new ClearListDelegate(OnClearListView);
            _add   = new AddItemDelegate(OnAddListViewItem);

            _console     = console;
            _udpClientEP = new IPEndPoint(IPAddress.Any, 12042);
            _udpClient   = new UdpClient(_udpClientEP);
            _udpClient.BeginReceive(new AsyncCallback(onLDBHostReply), _udpClient);
        }
Example #3
0
 /// <summary>
 /// Delegated method of accessing UI elements in the threads
 /// </summary>
 private void Delegated_ClearList()
 {
     if (this.InvokeRequired)
     {
         ClearListDelegate d = new ClearListDelegate(Delegated_ClearList);
         this.Invoke(d);
     }
     else
     {
         ClearList();
     }
 }