Example #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.win_main_window = ((PLWPF.MainWindow)(target));
                return;

            case 2:
                this.tester_id = ((System.Windows.Controls.TextBox)(target));

            #line 52 "..\..\MainWindow.xaml"
                this.tester_id.KeyDown += new System.Windows.Input.KeyEventHandler(this.Sign_in_tester_enter);

            #line default
            #line hidden
                return;

            case 3:
                this.tester_password = ((System.Windows.Controls.PasswordBox)(target));

            #line 56 "..\..\MainWindow.xaml"
                this.tester_password.KeyDown += new System.Windows.Input.KeyEventHandler(this.Sign_in_tester_enter);

            #line default
            #line hidden
                return;

            case 4:
                this.txt_tester_password = ((System.Windows.Controls.TextBox)(target));

            #line 57 "..\..\MainWindow.xaml"
                this.txt_tester_password.KeyDown += new System.Windows.Input.KeyEventHandler(this.Sign_in_tester_enter);

            #line default
            #line hidden
                return;

            case 5:
                this.tester_error_message = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.tgb_tester = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 63 "..\..\MainWindow.xaml"
                this.tgb_tester.Click += new System.Windows.RoutedEventHandler(this.Visible_password);

            #line default
            #line hidden
                return;

            case 7:
                this.log_in_tester = ((System.Windows.Controls.Button)(target));

            #line 65 "..\..\MainWindow.xaml"
                this.log_in_tester.Click += new System.Windows.RoutedEventHandler(this.LogInTester);

            #line default
            #line hidden
                return;

            case 8:

            #line 66 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.StartTesterRegistration);

            #line default
            #line hidden
                return;

            case 9:
                this.trainee_id = ((System.Windows.Controls.TextBox)(target));

            #line 89 "..\..\MainWindow.xaml"
                this.trainee_id.KeyDown += new System.Windows.Input.KeyEventHandler(this.Sign_in_student_enter);

            #line default
            #line hidden
                return;

            case 10:
                this.student_password = ((System.Windows.Controls.PasswordBox)(target));

            #line 93 "..\..\MainWindow.xaml"
                this.student_password.KeyDown += new System.Windows.Input.KeyEventHandler(this.Sign_in_student_enter);

            #line default
            #line hidden
                return;

            case 11:
                this.txt_student_password = ((System.Windows.Controls.TextBox)(target));

            #line 94 "..\..\MainWindow.xaml"
                this.txt_student_password.KeyDown += new System.Windows.Input.KeyEventHandler(this.Sign_in_student_enter);

            #line default
            #line hidden
                return;

            case 12:
                this.student_error_message = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 13:
                this.tgb_student = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 100 "..\..\MainWindow.xaml"
                this.tgb_student.Click += new System.Windows.RoutedEventHandler(this.Visible_password);

            #line default
            #line hidden
                return;

            case 14:
                this.log_in_student = ((System.Windows.Controls.Button)(target));

            #line 102 "..\..\MainWindow.xaml"
                this.log_in_student.Click += new System.Windows.RoutedEventHandler(this.LogInStudent);

            #line default
            #line hidden
                return;

            case 15:

            #line 103 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.StartStudentRegistration);

            #line default
            #line hidden
                return;

            case 16:
                this.worker_password = ((System.Windows.Controls.PasswordBox)(target));

            #line 123 "..\..\MainWindow.xaml"
                this.worker_password.PasswordChanged += new System.Windows.RoutedEventHandler(this.Log_in_worker_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Example #2
0
        private void On_Closed(Object sender, System.ComponentModel.CancelEventArgs e)
        {
            MainWindow mainWindow = new MainWindow();

            mainWindow.Show();
        }//when pressing x open the main window