private void LviFoodManagement_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) { tblTitle.Text = "Quản lý loại món & món ăn"; UControl.Items.Clear(); var change = new ucQLMonAnLoaiMon(); _tabUserPage = new TabItem { Content = change }; UControl.Items.Add(_tabUserPage); UControl.Items.Refresh(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ucQLMonAnLoaiMon1 = ((CNPM.ucQLMonAnLoaiMon)(target)); #line 10 "..\..\..\Views\ucQLMonAnLoaiMon.xaml" this.ucQLMonAnLoaiMon1.Loaded += new System.Windows.RoutedEventHandler(this.ucQLMonAnLoaiMon1_Loaded); #line default #line hidden return; case 2: this.grbQLLoaiMon = ((System.Windows.Controls.GroupBox)(target)); return; case 3: this.grdLoaiMon = ((System.Windows.Controls.Grid)(target)); return; case 4: this.txtTenLoaiMon = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.btnThemLoaiMon = ((System.Windows.Controls.Button)(target)); #line 29 "..\..\..\Views\ucQLMonAnLoaiMon.xaml" this.btnThemLoaiMon.Click += new System.Windows.RoutedEventHandler(this.btnThemLoaiMon_Click); #line default #line hidden return; case 6: this.btnSuaLoaiMon = ((System.Windows.Controls.Button)(target)); #line 34 "..\..\..\Views\ucQLMonAnLoaiMon.xaml" this.btnSuaLoaiMon.Click += new System.Windows.RoutedEventHandler(this.btnSuaLoaiMon_Click); #line default #line hidden return; case 7: this.btnXoaLoaiMon = ((System.Windows.Controls.Button)(target)); #line 39 "..\..\..\Views\ucQLMonAnLoaiMon.xaml" this.btnXoaLoaiMon.Click += new System.Windows.RoutedEventHandler(this.btnXoaLoaiMon_Click); #line default #line hidden return; case 8: this.btnLuuLoaiMon = ((System.Windows.Controls.Button)(target)); #line 44 "..\..\..\Views\ucQLMonAnLoaiMon.xaml" this.btnLuuLoaiMon.Click += new System.Windows.RoutedEventHandler(this.btnLuuLoaiMon_Click); #line default #line hidden return; case 9: this.btnHuyLoaiMon = ((System.Windows.Controls.Button)(target)); #line 49 "..\..\..\Views\ucQLMonAnLoaiMon.xaml" this.btnHuyLoaiMon.Click += new System.Windows.RoutedEventHandler(this.btnHuyLoaiMon_Click); #line default #line hidden return; case 10: this.btnReLoadLoaiMon = ((System.Windows.Controls.Button)(target)); #line 54 "..\..\..\Views\ucQLMonAnLoaiMon.xaml" this.btnReLoadLoaiMon.Click += new System.Windows.RoutedEventHandler(this.btnReLoadLoaiMon_Click); #line default #line hidden return; case 11: this.DgvLoaiMon = ((System.Windows.Controls.DataGrid)(target)); #line 66 "..\..\..\Views\ucQLMonAnLoaiMon.xaml" this.DgvLoaiMon.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.DgvLoaiMon_SelectionChanged); #line default #line hidden #line 66 "..\..\..\Views\ucQLMonAnLoaiMon.xaml" this.DgvLoaiMon.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.DgvLoaiMon_MouseDown); #line default #line hidden return; case 12: this.txtTimKiemLoaiMon = ((System.Windows.Controls.TextBox)(target)); return; case 13: this.grbQLMonAn = ((System.Windows.Controls.GroupBox)(target)); return; case 14: this.grdMonAn = ((System.Windows.Controls.Grid)(target)); return; case 15: this.txtTenMonAn = ((System.Windows.Controls.TextBox)(target)); return; case 16: this.cbxLoaiMon = ((System.Windows.Controls.ComboBox)(target)); #line 87 "..\..\..\Views\ucQLMonAnLoaiMon.xaml" this.cbxLoaiMon.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged); #line default #line hidden return; case 17: this.txtGiaTien = ((System.Windows.Controls.TextBox)(target)); return; case 18: this.btnChonAnh = ((System.Windows.Controls.Button)(target)); #line 98 "..\..\..\Views\ucQLMonAnLoaiMon.xaml" this.btnChonAnh.Click += new System.Windows.RoutedEventHandler(this.btnChonAnh_Click_1); #line default #line hidden return; case 19: this.imgMonAn = ((System.Windows.Controls.Image)(target)); return; case 20: this.btnThemMonAn = ((System.Windows.Controls.Button)(target)); #line 105 "..\..\..\Views\ucQLMonAnLoaiMon.xaml" this.btnThemMonAn.Click += new System.Windows.RoutedEventHandler(this.btnThemMonAn_Click); #line default #line hidden return; case 21: this.btnSuaMonAn = ((System.Windows.Controls.Button)(target)); #line 110 "..\..\..\Views\ucQLMonAnLoaiMon.xaml" this.btnSuaMonAn.Click += new System.Windows.RoutedEventHandler(this.btnSuaMonAn_Click); #line default #line hidden return; case 22: this.btnXoaMonAn = ((System.Windows.Controls.Button)(target)); #line 115 "..\..\..\Views\ucQLMonAnLoaiMon.xaml" this.btnXoaMonAn.Click += new System.Windows.RoutedEventHandler(this.btnXoaMonAn_Click); #line default #line hidden return; case 23: this.btnLuuMonAn = ((System.Windows.Controls.Button)(target)); #line 120 "..\..\..\Views\ucQLMonAnLoaiMon.xaml" this.btnLuuMonAn.Click += new System.Windows.RoutedEventHandler(this.btnLuuMonAn_Click); #line default #line hidden return; case 24: this.btnHuyMonAn = ((System.Windows.Controls.Button)(target)); #line 125 "..\..\..\Views\ucQLMonAnLoaiMon.xaml" this.btnHuyMonAn.Click += new System.Windows.RoutedEventHandler(this.btnHuyMonAn_Click); #line default #line hidden return; case 25: this.btnReloadMonAn = ((System.Windows.Controls.Button)(target)); #line 130 "..\..\..\Views\ucQLMonAnLoaiMon.xaml" this.btnReloadMonAn.Click += new System.Windows.RoutedEventHandler(this.btnReloadMonAn_Click_1); #line default #line hidden return; case 26: this.txtTimKiemMonAn = ((System.Windows.Controls.TextBox)(target)); return; case 27: this.dgvMonAn = ((System.Windows.Controls.DataGrid)(target)); #line 142 "..\..\..\Views\ucQLMonAnLoaiMon.xaml" this.dgvMonAn.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dgvMonAn_SelectionChanged_1); #line default #line hidden return; } this._contentLoaded = true; }