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

            #line 9 "..\..\MainWindow.xaml"
                this.Main.Loaded += new System.Windows.RoutedEventHandler(this.Main_Loaded);

            #line default
            #line hidden

            #line 9 "..\..\MainWindow.xaml"
                this.Main.Closing += new System.ComponentModel.CancelEventHandler(this.Main_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.tabControl = ((System.Windows.Controls.TabControl)(target));
                return;

            case 3:
                this.MainDataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 4:
                this.buttonXEM = ((System.Windows.Controls.Button)(target));

            #line 69 "..\..\MainWindow.xaml"
                this.buttonXEM.Click += new System.Windows.RoutedEventHandler(this.buttonXEM_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.buttonTHEM = ((System.Windows.Controls.Button)(target));

            #line 75 "..\..\MainWindow.xaml"
                this.buttonTHEM.Click += new System.Windows.RoutedEventHandler(this.buttonTHEM_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.buttonXOA = ((System.Windows.Controls.Button)(target));

            #line 81 "..\..\MainWindow.xaml"
                this.buttonXOA.Click += new System.Windows.RoutedEventHandler(this.buttonXOA_Click);

            #line default
            #line hidden
                return;

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

            #line 87 "..\..\MainWindow.xaml"
                this.buttonSUA.Click += new System.Windows.RoutedEventHandler(this.buttonSUA_Click);

            #line default
            #line hidden
                return;

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

            #line 94 "..\..\MainWindow.xaml"
                this.buttonREFRES.Click += new System.Windows.RoutedEventHandler(this.buttonREFRES_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.buttonIn = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

            case 10:
                this.btnLop = ((System.Windows.Controls.Button)(target));

            #line 109 "..\..\MainWindow.xaml"
                this.btnLop.Click += new System.Windows.RoutedEventHandler(this.btnLop_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.btnnGiaoVien = ((System.Windows.Controls.Button)(target));

            #line 110 "..\..\MainWindow.xaml"
                this.btnnGiaoVien.Click += new System.Windows.RoutedEventHandler(this.btnnGiaoVien_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.btnMonHoc = ((System.Windows.Controls.Button)(target));

            #line 111 "..\..\MainWindow.xaml"
                this.btnMonHoc.Click += new System.Windows.RoutedEventHandler(this.btnMonHoc_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.expander = ((System.Windows.Controls.Expander)(target));
                return;

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

            #line 114 "..\..\MainWindow.xaml"
                this.btnK10.Click += new System.Windows.RoutedEventHandler(this.btnK10_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.btnK11 = ((System.Windows.Controls.Button)(target));

            #line 115 "..\..\MainWindow.xaml"
                this.btnK11.Click += new System.Windows.RoutedEventHandler(this.btnK11_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.btnK12 = ((System.Windows.Controls.Button)(target));

            #line 116 "..\..\MainWindow.xaml"
                this.btnK12.Click += new System.Windows.RoutedEventHandler(this.btnK12_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.comboBox1 = ((System.Windows.Controls.ComboBox)(target));

            #line 126 "..\..\MainWindow.xaml"
                this.comboBox1.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.comboBox1_SelectionChanged);

            #line default
            #line hidden
                return;

            case 18:
                this.txtSearch = ((System.Windows.Controls.TextBox)(target));

            #line 133 "..\..\MainWindow.xaml"
                this.txtSearch.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtboxTimKiem_TextChanged);

            #line default
            #line hidden
                return;

            case 19:
                this.MainDataGrid1 = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 20:
                this.ComboBoxa = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 21:
                this.txtSearcha = ((System.Windows.Controls.TextBox)(target));

            #line 170 "..\..\MainWindow.xaml"
                this.txtSearcha.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtboxTimKiem_TextChanged);

            #line default
            #line hidden
                return;

            case 22:
                this.treeView = ((System.Windows.Controls.TreeView)(target));
                return;

            case 23:
                this.buttonINq = ((System.Windows.Controls.Button)(target));

            #line 176 "..\..\MainWindow.xaml"
                this.buttonINq.Click += new System.Windows.RoutedEventHandler(this.buttonXEM_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.buttonINlop = ((System.Windows.Controls.Button)(target));

            #line 182 "..\..\MainWindow.xaml"
                this.buttonINlop.Click += new System.Windows.RoutedEventHandler(this.buttonINlop_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.menu = ((System.Windows.Controls.Menu)(target));
                return;

            case 26:
                this.File = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 27:
                this.Exit = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 28:
                this.TaiKhoan = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 29:
                this.ThongTinTaiKhoan = ((System.Windows.Controls.MenuItem)(target));

            #line 199 "..\..\MainWindow.xaml"
                this.ThongTinTaiKhoan.Click += new System.Windows.RoutedEventHandler(this.ThongTinTaiKhoan_Click);

            #line default
            #line hidden
                return;

            case 30:
                this.ThayDoiPass = ((System.Windows.Controls.MenuItem)(target));

            #line 200 "..\..\MainWindow.xaml"
                this.ThayDoiPass.Click += new System.Windows.RoutedEventHandler(this.ThayDoiPass_Click);

            #line default
            #line hidden
                return;

            case 31:
                this.DangXuat = ((System.Windows.Controls.MenuItem)(target));

            #line 201 "..\..\MainWindow.xaml"
                this.DangXuat.Click += new System.Windows.RoutedEventHandler(this.DangXuat_Click);

            #line default
            #line hidden
                return;

            case 32:
                this.GiaoVu = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 33:
                this.QuanLyDiem = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 34:
                this.QuanLyKhoa = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 35:
                this.ThongKe = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 36:
                this.KeHoachGiangDay = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 37:
                this.NhapDiemMoi = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 38:
                this.SuaDiem = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 39:
                this.ThietLap = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 40:
                this.CapQuyenTruyCap = ((System.Windows.Controls.MenuItem)(target));

            #line 212 "..\..\MainWindow.xaml"
                this.CapQuyenTruyCap.Click += new System.Windows.RoutedEventHandler(this.CapQuyenTruyCap_Click);

            #line default
            #line hidden
                return;

            case 41:
                this.QuyDinh = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 42:
                this.ThongTinTruong = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 43:
                this.TaoNamHocMoi = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 44:
                this.GioiThieu = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 45:
                this.HuongDanSuDung = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 46:
                this.ThongTinUngDung = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 47:
                this.TroGiup = ((System.Windows.Controls.MenuItem)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Main = ((QLTH.MainWindow)(target));

            #line 9 "..\..\MainWindow.xaml"
                this.Main.Loaded += new System.Windows.RoutedEventHandler(this.Main_Loaded);

            #line default
            #line hidden

            #line 9 "..\..\MainWindow.xaml"
                this.Main.Closing += new System.ComponentModel.CancelEventHandler(this.Main_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.tabControl = ((System.Windows.Controls.TabControl)(target));
                return;

            case 3:
                this.MainDataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 4:
                this.buttonXEM = ((System.Windows.Controls.Button)(target));

            #line 71 "..\..\MainWindow.xaml"
                this.buttonXEM.Click += new System.Windows.RoutedEventHandler(this.buttonXEM_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.buttonTHEM = ((System.Windows.Controls.Button)(target));

            #line 77 "..\..\MainWindow.xaml"
                this.buttonTHEM.Click += new System.Windows.RoutedEventHandler(this.buttonTHEM_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.buttonXOA = ((System.Windows.Controls.Button)(target));

            #line 83 "..\..\MainWindow.xaml"
                this.buttonXOA.Click += new System.Windows.RoutedEventHandler(this.buttonXOA_Click);

            #line default
            #line hidden
                return;

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

            #line 89 "..\..\MainWindow.xaml"
                this.buttonSUA.Click += new System.Windows.RoutedEventHandler(this.buttonSUA_Click);

            #line default
            #line hidden
                return;

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

            #line 96 "..\..\MainWindow.xaml"
                this.buttonREFRES.Click += new System.Windows.RoutedEventHandler(this.buttonREFRES_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.buttonIn = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

            case 10:
                this.btnLop = ((System.Windows.Controls.Button)(target));

            #line 114 "..\..\MainWindow.xaml"
                this.btnLop.Click += new System.Windows.RoutedEventHandler(this.btnLop_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.btnnGiaoVien = ((System.Windows.Controls.Button)(target));

            #line 115 "..\..\MainWindow.xaml"
                this.btnnGiaoVien.Click += new System.Windows.RoutedEventHandler(this.btnnGiaoVien_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.btnMonHoc = ((System.Windows.Controls.Button)(target));

            #line 116 "..\..\MainWindow.xaml"
                this.btnMonHoc.Click += new System.Windows.RoutedEventHandler(this.btnMonHoc_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.expander = ((System.Windows.Controls.Expander)(target));
                return;

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

            #line 123 "..\..\MainWindow.xaml"
                this.btnK10.Click += new System.Windows.RoutedEventHandler(this.btnK10_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.btnK11 = ((System.Windows.Controls.Button)(target));

            #line 124 "..\..\MainWindow.xaml"
                this.btnK11.Click += new System.Windows.RoutedEventHandler(this.btnK11_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.btnK12 = ((System.Windows.Controls.Button)(target));

            #line 125 "..\..\MainWindow.xaml"
                this.btnK12.Click += new System.Windows.RoutedEventHandler(this.btnK12_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.comboBox1 = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 18:
                this.txtSearch = ((System.Windows.Controls.TextBox)(target));

            #line 142 "..\..\MainWindow.xaml"
                this.txtSearch.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtboxTimKiem_TextChanged);

            #line default
            #line hidden

            #line 142 "..\..\MainWindow.xaml"
                this.txtSearch.LostFocus += new System.Windows.RoutedEventHandler(this.txtSearch_LostFocus);

            #line default
            #line hidden

            #line 142 "..\..\MainWindow.xaml"
                this.txtSearch.GotFocus += new System.Windows.RoutedEventHandler(this.txtSearch_GotFocus);

            #line default
            #line hidden
                return;

            case 19:
                this.button = ((System.Windows.Controls.Button)(target));
                return;

            case 20:

            #line 152 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 21:
                this.MainDataGrid1 = ((System.Windows.Controls.DataGrid)(target));

            #line 168 "..\..\MainWindow.xaml"
                this.MainDataGrid1.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.MainDataGrid1_SelectionChanged);

            #line default
            #line hidden
                return;

            case 22:
                this.ComboBoxa = ((System.Windows.Controls.ComboBox)(target));

            #line 178 "..\..\MainWindow.xaml"
                this.ComboBoxa.DropDownClosed += new System.EventHandler(this.ComboBoxa_DropDownClosed);

            #line default
            #line hidden
                return;

            case 23:
                this.treeView = ((System.Windows.Controls.TreeView)(target));
                return;

            case 24:
                this.buttonINq = ((System.Windows.Controls.Button)(target));

            #line 185 "..\..\MainWindow.xaml"
                this.buttonINq.Click += new System.Windows.RoutedEventHandler(this.buttonINq_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.buttonINlop = ((System.Windows.Controls.Button)(target));

            #line 191 "..\..\MainWindow.xaml"
                this.buttonINlop.Click += new System.Windows.RoutedEventHandler(this.buttonINlop_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.txtSearch1 = ((System.Windows.Controls.TextBox)(target));

            #line 203 "..\..\MainWindow.xaml"
                this.txtSearch1.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtboxTimKiem_TextChanged);

            #line default
            #line hidden

            #line 203 "..\..\MainWindow.xaml"
                this.txtSearch1.LostFocus += new System.Windows.RoutedEventHandler(this.txtSearch_LostFocus);

            #line default
            #line hidden

            #line 203 "..\..\MainWindow.xaml"
                this.txtSearch1.GotFocus += new System.Windows.RoutedEventHandler(this.txtSearch_GotFocus);

            #line default
            #line hidden
                return;

            case 27:
                this.button1 = ((System.Windows.Controls.Button)(target));
                return;

            case 28:
                this.menu = ((System.Windows.Controls.Menu)(target));
                return;

            case 29:
                this.File = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 30:
                this.Exit = ((System.Windows.Controls.MenuItem)(target));

            #line 216 "..\..\MainWindow.xaml"
                this.Exit.Click += new System.Windows.RoutedEventHandler(this.Exit_Click);

            #line default
            #line hidden
                return;

            case 31:
                this.TaiKhoan = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 32:
                this.ThongTinTaiKhoan = ((System.Windows.Controls.MenuItem)(target));

            #line 219 "..\..\MainWindow.xaml"
                this.ThongTinTaiKhoan.Click += new System.Windows.RoutedEventHandler(this.ThongTinTaiKhoan_Click);

            #line default
            #line hidden
                return;

            case 33:
                this.ThayDoiPass = ((System.Windows.Controls.MenuItem)(target));

            #line 220 "..\..\MainWindow.xaml"
                this.ThayDoiPass.Click += new System.Windows.RoutedEventHandler(this.ThayDoiPass_Click);

            #line default
            #line hidden
                return;

            case 34:
                this.DangXuat = ((System.Windows.Controls.MenuItem)(target));

            #line 221 "..\..\MainWindow.xaml"
                this.DangXuat.Click += new System.Windows.RoutedEventHandler(this.DangXuat_Click);

            #line default
            #line hidden
                return;

            case 35:
                this.GiaoVu = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 36:
                this.QuanLyDiem = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 37:
                this.NhapDiemMoi = ((System.Windows.Controls.MenuItem)(target));

            #line 225 "..\..\MainWindow.xaml"
                this.NhapDiemMoi.Click += new System.Windows.RoutedEventHandler(this.NhapDiemMoi_Click);

            #line default
            #line hidden
                return;

            case 38:
                this.SuaDiem = ((System.Windows.Controls.MenuItem)(target));

            #line 226 "..\..\MainWindow.xaml"
                this.SuaDiem.Click += new System.Windows.RoutedEventHandler(this.SuaDiem_Click);

            #line default
            #line hidden
                return;

            case 39:
                this.QuanLyKhoa = ((System.Windows.Controls.MenuItem)(target));

            #line 228 "..\..\MainWindow.xaml"
                this.QuanLyKhoa.Click += new System.Windows.RoutedEventHandler(this.QuanLyKhoa_Click);

            #line default
            #line hidden
                return;

            case 40:
                this.ThietLap = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 41:
                this.CapQuyenTruyCap = ((System.Windows.Controls.MenuItem)(target));

            #line 231 "..\..\MainWindow.xaml"
                this.CapQuyenTruyCap.Click += new System.Windows.RoutedEventHandler(this.CapQuyenTruyCap_Click);

            #line default
            #line hidden
                return;

            case 42:
                this.QuyDinh = ((System.Windows.Controls.MenuItem)(target));

            #line 232 "..\..\MainWindow.xaml"
                this.QuyDinh.Click += new System.Windows.RoutedEventHandler(this.QuyDinh_Click);

            #line default
            #line hidden
                return;

            case 43:
                this.ThongTinTruong = ((System.Windows.Controls.MenuItem)(target));

            #line 233 "..\..\MainWindow.xaml"
                this.ThongTinTruong.Click += new System.Windows.RoutedEventHandler(this.ThongTinTruong_Click);

            #line default
            #line hidden
                return;

            case 44:
                this.TaoNamHocMoi = ((System.Windows.Controls.MenuItem)(target));

            #line 234 "..\..\MainWindow.xaml"
                this.TaoNamHocMoi.Click += new System.Windows.RoutedEventHandler(this.TaoNamHocMoi_Click);

            #line default
            #line hidden
                return;

            case 45:
                this.GioiThieu = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 46:
                this.HuongDanSuDung = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 47:
                this.ThongTinUngDung = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 48:
                this.TroGiup = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 49:
                this.image = ((System.Windows.Controls.Image)(target));
                return;

            case 50:
                this.expaPhaQuyen = ((System.Windows.Controls.Expander)(target));
                return;

            case 51:
                this.btnDangXuat = ((System.Windows.Controls.Button)(target));

            #line 247 "..\..\MainWindow.xaml"
                this.btnDangXuat.Click += new System.Windows.RoutedEventHandler(this.DangXuat_Click);

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