Ejemplo n.º 1
0
 private void c_threads_ValueChanged( object sender, EventArgs e )
 {
     while ( ThreadCount > tc_test_container.TabPages.Count )
     {
         TestUI new_tab = new TestUI( config );
         tc_test_container.TabPages.Add( new_tab );
         if ( test_running )
         {
             new_tab.Start();
         }
     }
     while ( ThreadCount < tc_test_container.TabPages.Count )
     {
         TestUI page = (TestUI)tc_test_container.TabPages[ tc_test_container.TabPages.Count - 1 ];
         page.Stop();
         tc_test_container.TabPages.Remove( page );
     }
 }
Ejemplo n.º 2
0
 private void c_threads_ValueChanged(object sender, EventArgs e)
 {
     while (ThreadCount > tc_test_container.TabPages.Count)
     {
         TestUI new_tab = new TestUI(config);
         tc_test_container.TabPages.Add(new_tab);
         if (test_running)
         {
             new_tab.Start();
         }
     }
     while (ThreadCount < tc_test_container.TabPages.Count)
     {
         TestUI page = (TestUI)tc_test_container.TabPages[tc_test_container.TabPages.Count - 1];
         page.Stop();
         tc_test_container.TabPages.Remove(page);
     }
 }