Esempio n. 1
0
        private void LviOrder_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            tblTitle.Text = "Gọi món";
            UControl.Items.Clear();
            var change = new ucGoiMon();

            change.MaNV  = this.id;
            _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.ucGoiMon1 = ((CNPM.ucGoiMon)(target));
                return;

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

            case 3:
                this.btnThem = ((System.Windows.Controls.Button)(target));

            #line 26 "..\..\..\Views\ucGoiMon.xaml"
                this.btnThem.Click += new System.Windows.RoutedEventHandler(this.btnThem_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.imgMonAn = ((System.Windows.Controls.Image)(target));
                return;

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

            #line 31 "..\..\..\Views\ucGoiMon.xaml"
                this.btnTru.Click += new System.Windows.RoutedEventHandler(this.btnTru_Click);

            #line default
            #line hidden
                return;

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

            #line 35 "..\..\..\Views\ucGoiMon.xaml"
                this.btnCong.Click += new System.Windows.RoutedEventHandler(this.btnCong_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.tbxSoLuong = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.txtTimKiem = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.dgvDSMonAn = ((System.Windows.Controls.DataGrid)(target));

            #line 60 "..\..\..\Views\ucGoiMon.xaml"
                this.dgvDSMonAn.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dgvDSMonAn_SelectionChanged);

            #line default
            #line hidden
                return;

            case 10:
                this.grBxThanhToan = ((System.Windows.Controls.GroupBox)(target));
                return;

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

            #line 75 "..\..\..\Views\ucGoiMon.xaml"
                this.btnXoaMonAn.Click += new System.Windows.RoutedEventHandler(this.btnXoaMonAn_Click);

            #line default
            #line hidden
                return;

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

            #line 79 "..\..\..\Views\ucGoiMon.xaml"
                this.btnXoaHoaDon.Click += new System.Windows.RoutedEventHandler(this.btnXoaHoaDon_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.dgvHoaDon = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 14:
                this.txtGiamGia = ((System.Windows.Controls.TextBox)(target));
                return;

            case 15:
                this.txtThanhToan = ((System.Windows.Controls.TextBox)(target));
                return;

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

            #line 107 "..\..\..\Views\ucGoiMon.xaml"
                this.btnThanhToan.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

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