示例#1
0
 private void View_GotFocus(object sender, RoutedEventArgs e)
 {
     if (OldTab != "View")
     {
         viewTestersUsercontrol.initializeData();
         viewTraineeUserconrol.initializeData();
         //ViewTest.AllExistTests = bl.GetAllTests();
         ViewTest.InitializeData();
     }
     OldTab = "View";
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.title = ((PLWPF.title)(target));
                return;

            case 2:
                this.details = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.showTainee_uc = ((PLWPF.showInfoAboutTrainee)(target));
                return;

            case 4:
                this.testFuture = ((System.Windows.Controls.TabItem)(target));
                return;

            case 5:
                this.viewTest_uc = ((PLWPF.ViewTest)(target));
                return;

            case 6:
                this.addTest_uc = ((PLWPF.AddAutoTest)(target));
                return;

            case 7:
                this.updateTrainee_uc = ((PLWPF.UpdateTrainee)(target));
                return;

            case 8:
                this.viewTests_uc = ((PLWPF.ViewTests)(target));
                return;

            case 9:
                this.AddLessonToTrainee_uc = ((PLWPF.AddLessonToTrainee)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.toolsOfDisplay = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.trainee = ((System.Windows.Controls.ComboBox)(target));

            #line 27 "..\..\ViewTests.xaml"
                this.trainee.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.comboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.tester = ((System.Windows.Controls.ComboBox)(target));

            #line 28 "..\..\ViewTests.xaml"
                this.tester.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.comboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.successfulTests = ((System.Windows.Controls.CheckBox)(target));

            #line 30 "..\..\ViewTests.xaml"
                this.successfulTests.Click += new System.Windows.RoutedEventHandler(this.SuccessfulTests_Checked);

            #line default
            #line hidden
                return;

            case 5:
                this.unsuccessfulTests = ((System.Windows.Controls.CheckBox)(target));

            #line 31 "..\..\ViewTests.xaml"
                this.unsuccessfulTests.Click += new System.Windows.RoutedEventHandler(this.SuccessfulTests_Checked);

            #line default
            #line hidden
                return;

            case 6:
                this.unfinishedTests = ((System.Windows.Controls.CheckBox)(target));

            #line 32 "..\..\ViewTests.xaml"
                this.unfinishedTests.Click += new System.Windows.RoutedEventHandler(this.SuccessfulTests_Checked);

            #line default
            #line hidden
                return;

            case 7:
                this.viewSingleTest = ((PLWPF.ViewTest)(target));
                return;

            case 8:
                this.backButton = ((System.Windows.Controls.Button)(target));

            #line 36 "..\..\ViewTests.xaml"
                this.backButton.Click += new System.Windows.RoutedEventHandler(this.backButton_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.menu = ((System.Windows.Controls.Grid)(target));
                return;

            case 10:
                this.TestsView = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 11:
                this.clickMenu = ((System.Windows.Controls.ContextMenu)(target));
                return;

            case 12:

            #line 66 "..\..\ViewTests.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SortByNumber);

            #line default
            #line hidden
                return;

            case 13:

            #line 67 "..\..\ViewTests.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SortByTraineName);

            #line default
            #line hidden
                return;

            case 14:

            #line 68 "..\..\ViewTests.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SortByTesterName);

            #line default
            #line hidden
                return;

            case 15:

            #line 69 "..\..\ViewTests.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SortByState);

            #line default
            #line hidden
                return;

            case 16:

            #line 70 "..\..\ViewTests.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SortBydate);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }