//stop monitor thread private void stopMonitorBtn_Click(object sender, EventArgs e) { m_oNetDemo.stopCycleMonitorThread(); m_oNetDemo.m_cycleMonitorInfo = null; foreach (ListViewItem item in monitorListView.Items) { this.unmonitorListView.Items.Add((ListViewItem)item.Clone()); } this.monitorListView.Items.Clear(); this.stopMonitorBtn.Enabled = false; this.startMonitorBtn.Enabled = true; this.startMonitorBtn.Enabled = true; this.addAllMonitorBtn.Enabled = true; this.addOneMonitorBtn.Enabled = true; this.delAllMonitorBtn.Enabled = true; this.delOneMonitorBtn.Enabled = true; }