Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.page = ((PhanMemBanHang.NhapDuLieu)(target));
                return;

            case 2:
                this.stackPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

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

            #line 130 "..\..\NhapDuLieu.xaml"
                this.dgDuLieu.Loaded += new System.Windows.RoutedEventHandler(this.dgDuLieu_Loaded);

            #line default
            #line hidden

            #line 130 "..\..\NhapDuLieu.xaml"
                this.dgDuLieu.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dgDuLieu_SelectionChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.grid = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.myAutoTenHang = ((PhanMemBanHang.Controls.AutoCompleteComboBox)(target));
                return;

            case 6:
                this.GiaTien = ((System.Windows.Controls.TextBox)(target));

            #line 148 "..\..\NhapDuLieu.xaml"
                this.GiaTien.KeyUp += new System.Windows.Input.KeyEventHandler(this.TenHang_KeyUp);

            #line default
            #line hidden

            #line 148 "..\..\NhapDuLieu.xaml"
                this.GiaTien.LostFocus += new System.Windows.RoutedEventHandler(this.GiaTien_LostFocus);

            #line default
            #line hidden
                return;

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

            #line 152 "..\..\NhapDuLieu.xaml"
                this.BarCode.KeyUp += new System.Windows.Input.KeyEventHandler(this.TenHang_KeyUp);

            #line default
            #line hidden
                return;

            case 8:

            #line 154 "..\..\NhapDuLieu.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnCapNhatGia_Clicked);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.stackPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 2:
                this.time = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 3:
                this.stackPanel1 = ((System.Windows.Controls.StackPanel)(target));
                return;

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

            #line 211 "..\..\QuetMaVach.xaml"
                this.barcode.KeyDown += new System.Windows.Input.KeyEventHandler(this.OnKeyDownHandler);

            #line default
            #line hidden
                return;

            case 5:
                this.stackPanel2 = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 6:
                this.donhangso = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:

            #line 220 "..\..\QuetMaVach.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.HoaDonMoi_MouseUp);

            #line default
            #line hidden
                return;

            case 8:
                this.dataGrid1 = ((System.Windows.Controls.DataGrid)(target));

            #line 230 "..\..\QuetMaVach.xaml"
                this.dataGrid1.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dataGrid1_SelectionChanged);

            #line default
            #line hidden
                return;

            case 9:
                this.grid = ((System.Windows.Controls.Grid)(target));
                return;

            case 10:
                this.myAutoTenHang = ((PhanMemBanHang.Controls.AutoCompleteComboBox)(target));
                return;

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

            #line 257 "..\..\QuetMaVach.xaml"
                this.SoLuong.KeyUp += new System.Windows.Input.KeyEventHandler(this.InputBox_KeyUp);

            #line default
            #line hidden

            #line 257 "..\..\QuetMaVach.xaml"
                this.SoLuong.LostFocus += new System.Windows.RoutedEventHandler(this.InputBox_LostFocus);

            #line default
            #line hidden
                return;

            case 12:
                this.GiaTien = ((System.Windows.Controls.TextBox)(target));

            #line 261 "..\..\QuetMaVach.xaml"
                this.GiaTien.KeyUp += new System.Windows.Input.KeyEventHandler(this.InputBox_KeyUp);

            #line default
            #line hidden

            #line 261 "..\..\QuetMaVach.xaml"
                this.GiaTien.LostFocus += new System.Windows.RoutedEventHandler(this.InputBox_LostFocus);

            #line default
            #line hidden
                return;

            case 13:
                this.TongTien = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

            #line 272 "..\..\QuetMaVach.xaml"
                this.TienKhachTra.KeyUp += new System.Windows.Input.KeyEventHandler(this.TienKhachTra_KeyUp);

            #line default
            #line hidden

            #line 272 "..\..\QuetMaVach.xaml"
                this.TienKhachTra.LostFocus += new System.Windows.RoutedEventHandler(this.TienKhachTra_LostFocus);

            #line default
            #line hidden
                return;

            case 16:

            #line 281 "..\..\QuetMaVach.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnThem_Clicked);

            #line default
            #line hidden
                return;

            case 17:

            #line 288 "..\..\QuetMaVach.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnSua_Clicked);

            #line default
            #line hidden
                return;

            case 18:

            #line 295 "..\..\QuetMaVach.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtXoa_Clicked);

            #line default
            #line hidden
                return;

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

            #line 302 "..\..\QuetMaVach.xaml"
                this.ButtonPrintPreview.Click += new System.Windows.RoutedEventHandler(this.ButtonPrint_MouseUp);

            #line default
            #line hidden
                return;

            case 20:
                this.ButtonPrint = ((System.Windows.Controls.Button)(target));

            #line 309 "..\..\QuetMaVach.xaml"
                this.ButtonPrint.Click += new System.Windows.RoutedEventHandler(this.ButtonPrint_MouseUp);

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