Beispiel #1
0
 private void ApplyThreadNameSelection()
 {
     foreach (ListViewItem item in threadNameListView.Items)
     {
         ThreadName thread = (ThreadName)item.Tag;
         thread.Visible = item.Checked;
     }
 }
Beispiel #2
0
        public static void Add(ThreadName tn)
        {
            lock (Lock)
            {
                AllThreadNames.Add(tn);

                if (!tn.Visible)
                {
                    IncrementInvisibleCount();
                }
            }
        }
Beispiel #3
0
        private ThreadName FindOrCreateThreadName(string name)
        {
            ThreadName threadName = null;

            if (!_foundThreadNames.TryGetValue(name, out threadName))
            {
                if (!_oldThreadNames.TryGetValue(name, out threadName))
                {
                    threadName      = new ThreadName();
                    threadName.Name = name;
                }

                _foundThreadNames.Add(name, threadName);
                ThreadNames.Add(threadName);
            }

            return(threadName);
        }