public void CB_SubscribeEvent(PLAT_SUBSCRIBE_EVENT_V20 pstEvent, IntPtr pUser) { ArrayList arry_eventss = new ArrayList(); arry_eventss.Add(pstEvent.iState); arry_eventss.Add(pstEvent.iEventType); int c_arry_events = arry_eventss.Count; string[] ftrs = new string[c_arry_events]; for (int j = 0; j < c_arry_events; j++) { listView1.Items.Clear(); ftrs[j] = arry_eventss[j].ToString(); } listView1.Items.Add(ftrs.ToString()); }
Invoke(new MethodInvoker( delegate { listView1.Items.Add(ftrs.ToString()); } )); }
Application.Current.Dispatcher.Invoke(() => { listView1.Items.Add(ftrs.ToString()); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)