Пример #1
0
        private void RecievedFilterTraces(object sender, FilterTraceArrivedEventArgs e)
        {
            if (InvokeRequired)
            {
                Invoke(new FilterTraceArrived(RecievedFilterTraces), new Object[] { sender, e });
            }
            else
            {
                if (tabControl.SelectedTab == tabTrace)
                {
                    lvTraces.SuspendDrawing();

                    foreach (FilterTrace filterTrace in e.Traces)
                    {
                        AddFilterTrace(filterTrace);
                    }

                    lvTraces.ResumeDrawing();
                }
            }
        }
Пример #2
0
        private void RecievedFilterTraces(object sender, FilterTraceArrivedEventArgs e)
        {
            if (InvokeRequired)
            {
                Invoke(new FilterTraceArrived(RecievedFilterTraces), new Object[] { sender, e });
            }
            else
            {
                if (tabControl.SelectedTab == tabTrace)
                {
                    lvTraces.SuspendDrawing();

                    foreach (FilterTrace filterTrace in e.Traces)
                    {
                        AddFilterTrace(filterTrace);
                    }

                    lvTraces.ResumeDrawing();
                }
            }
        }