private void lbRunning_DoubleClick(object sender, EventArgs e) { ThreadWrapper wrapper = lbRunning.SelectedItem as ThreadWrapper; wrapper.Stop(true); lbRunning.Items.Remove(wrapper); }
void RemoveRunWrapper(ThreadWrapper wrapper, bool isRelease) { wrapper.Stop(false); lbRunning.Items.Remove(wrapper); }