Beispiel #1
0
        public void OneHdred_ms(object sender, ElapsedEventArgs e)
        {
            hWndListManager objWndListManager = new hWndListManager();

            if (hWndNameListBox.InvokeRequired == true || hWndListBox.InvokeRequired == true)
            {
                RefreshListBoxDelegate ListBoxDelegator = new RefreshListBoxDelegate(objWndListManager.RefreshListBox);
                this.Invoke(ListBoxDelegator, hWndNameListBox, hWndListBox);
            }
            else
            {
                objWndListManager.RefreshListBox(hWndNameListBox, hWndListBox);
            }
        }