コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.btnImport = ((System.Windows.Controls.Button)(target));

            #line 14 "..\..\..\View\MainWindow.xaml"
                this.btnImport.Click += new System.Windows.RoutedEventHandler(this.btnImport_Click);

            #line default
            #line hidden
                return;

            case 2:
                this.btnExport = ((System.Windows.Controls.Button)(target));

            #line 15 "..\..\..\View\MainWindow.xaml"
                this.btnExport.Click += new System.Windows.RoutedEventHandler(this.btnExport_Click);

            #line default
            #line hidden
                return;

            case 3:

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

            #line default
            #line hidden
                return;

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

            case 5:
                this.tabClasses = ((System.Windows.Controls.TabItem)(target));
                return;

            case 6:
                this.ctrlClasses = ((Highlands.ClassesControl)(target));
                return;

            case 7:
                this.tabStudents = ((System.Windows.Controls.TabItem)(target));
                return;

            case 8:
                this.studentsControl = ((Highlands.StudentsControl)(target));
                return;

            case 9:
                this.loginOverlay = ((System.Windows.Controls.Border)(target));
                return;

            case 10:
                this.loginWindow = ((Highlands.LoginWindow)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.btnImport = ((System.Windows.Controls.Button)(target));
     
     #line 14 "..\..\..\View\MainWindow.xaml"
     this.btnImport.Click += new System.Windows.RoutedEventHandler(this.btnImport_Click);
     
     #line default
     #line hidden
     return;
     case 2:
     this.btnExport = ((System.Windows.Controls.Button)(target));
     
     #line 15 "..\..\..\View\MainWindow.xaml"
     this.btnExport.Click += new System.Windows.RoutedEventHandler(this.btnExport_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 16 "..\..\..\View\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnLogout_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.tabAttendance = ((System.Windows.Controls.TabItem)(target));
     return;
     case 5:
     this.tabClasses = ((System.Windows.Controls.TabItem)(target));
     return;
     case 6:
     this.ctrlClasses = ((Highlands.ClassesControl)(target));
     return;
     case 7:
     this.tabStudents = ((System.Windows.Controls.TabItem)(target));
     return;
     case 8:
     this.studentsControl = ((Highlands.StudentsControl)(target));
     return;
     case 9:
     this.loginOverlay = ((System.Windows.Controls.Border)(target));
     return;
     case 10:
     this.loginWindow = ((Highlands.LoginWindow)(target));
     return;
     }
     this._contentLoaded = true;
 }