/*   Show how I can delegate for event Closed form  +++++++++++++ Don't delete +++++++++++++++++++
         *      // frAuthorization.Closed += Open_FrMain;
         *      //frAuthorization.BtOk.Click += new RoutedEventHandler(Open_FrMain1);
         *
         *          private void Open_FrMain(object sender, EventArgs e)
         *      {
         *
         *          this.Show();
         *          this.WindowState = WindowState.Normal;
         *          FrTester();
         *
         *
         *          //this.Visibility = Visibility.Visible;
         *          //errorConnection.Owner = this;
         *
         *          //this.Visibility = Visibility.Visible;
         *      }
         ++++++++++++++++ DON'T Delaee!!!!!!!!!!!!!!!! ++++++++++++++++++++++
         */

        private void userFormsUC()
        {
            stPanelUserControl.Children.Clear();
            UsersFormUC userFormsUC = new UsersFormUC();

            //TestingUC testingUC = new TestingUC();

            stPanelUserControl.Children.Add(userFormsUC);
        }
        private void BtRepaire_Click(object sender, RoutedEventArgs e)
        {
            MyData workSpace = new MyData();

            workSpace.ActiveWorkSpace = "BtDebug";

            enableButon();
            buttonName          = "BtRepaire";
            BtRepaire.IsEnabled = false;
            stPanelUserControl.Children.Clear();
            UsersFormUC usersFormUC = new UsersFormUC();

            usersFormUC.debugRepair("Repaire");
            stPanelUserControl.Children.Add(usersFormUC);
        }
        private void BtFinalQc_Click(object sender, RoutedEventArgs e)
        {
            MyData workSpace = new MyData();

            workSpace.ActiveWorkSpace = "FinalQc";

            enableButon();
            buttonName          = "BtFinalQc";
            BtFinalQc.IsEnabled = false;
            stPanelUserControl.Children.Clear();
            UsersFormUC usersFormUC = new UsersFormUC();

            usersFormUC.finalQc("Final QC");
            stPanelUserControl.Children.Add(usersFormUC);
        }
        private void BtTesting_Click(object sender, RoutedEventArgs e)
        {
            MyData workSpace = new MyData();

            workSpace.ActiveWorkSpace = "BtTesting";

            enableButon();
            buttonName          = "BtTesting";
            BtTesting.IsEnabled = false;
            stPanelUserControl.Children.Clear();
            UsersFormUC usersFormUC = new UsersFormUC();

            usersFormUC.test("Testing");
            stPanelUserControl.Children.Add(usersFormUC);
            //BtTesting.Visibility = Visibility.Collapsed;
            //BtSetup.Visibility = Visibility.Visible;
        }