private void build_Click(object sender, RoutedEventArgs e)
        {
            int c_proc;

            if ((lb3.Items.Count != 0 || lb5.Items.Count != 0) && (!string.IsNullOrEmpty(b_txtbox.Text)))
            {
                c_proc = Int32.Parse(b_txtbox.Text);
                if (c_proc != 0)
                {
                    b5.IsEnabled = false;

                    Mother_Builder mb = new Mother_Builder();
                    mb.start_builder(c_proc);
                    MockRepo rm = new MockRepo();
                    Thread   repo_thread_start = new Thread(rm.repo_main_thrd);
                    repo_thread_start.Start();
                }
                else
                {
                    MessageBox.Show("Please enter at least one child builder");
                }
            }
            else
            {
                if (lb3.Items.Count == 0 && lb5.Items.Count == 0)
                {
                    MessageBox.Show("Please create test request to start building or select from existing test requests");
                }
                else if (string.IsNullOrEmpty(b_txtbox.Text))
                {
                    MessageBox.Show("Please enter the number of child builders");
                }
            }
        }
예제 #2
0
        public void start_build()
        {
            int            c  = 3;
            Mother_Builder mb = new Mother_Builder();

            mb.start_builder(c);
            MockRepo rm = new MockRepo();
            Thread   repo_thread_start = new Thread(rm.repo_main_thrd);

            repo_thread_start.Start();
        }
예제 #3
0
        static void Main()
        {
            //Console.WriteLine("********Demonstrating the functions of Mock Client*********");
            int s = 3;

            Console.WriteLine("Starting Point");
            //Client cl = new Client();
            //cl.call_client();  // testing the function - call_client()
            Mother_Builder mb = new Mother_Builder();

            mb.start_builder(s);
            MockRepo rm = new MockRepo();
            Thread   repo_thread_start = new Thread(rm.repo_main_thrd);

            repo_thread_start.Start();
        }