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

            #line 9 "..\..\..\..\Pages\Setting\Product.xaml"
                ((CashierRegister.Pages.Setting.Product)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);

            #line default
            #line hidden

            #line 9 "..\..\..\..\Pages\Setting\Product.xaml"
                ((CashierRegister.Pages.Setting.Product)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.UserControl_SizeChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.grContent = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.tblNumCategory = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.mprcat = ((FirstFloor.ModernUI.Windows.Controls.ModernProgressRing)(target));
                return;

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

            case 6:
                this.lbCategory = ((System.Windows.Controls.ListBox)(target));

            #line 32 "..\..\..\..\Pages\Setting\Product.xaml"
                this.lbCategory.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lbCategory_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 77 "..\..\..\..\Pages\Setting\Product.xaml"
                this.btnAddCat.Click += new System.Windows.RoutedEventHandler(this.btnAdd_Click);

            #line default
            #line hidden
                return;

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

            #line 82 "..\..\..\..\Pages\Setting\Product.xaml"
                this.btnImportCat.Click += new System.Windows.RoutedEventHandler(this.btnImport_Click);

            #line default
            #line hidden
                return;

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

            #line 87 "..\..\..\..\Pages\Setting\Product.xaml"
                this.btnExportCat.Click += new System.Windows.RoutedEventHandler(this.btnExport_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.muiBtnDelete = ((FirstFloor.ModernUI.Windows.Controls.ModernButton)(target));

            #line 113 "..\..\..\..\Pages\Setting\Product.xaml"
                this.muiBtnDelete.Click += new System.Windows.RoutedEventHandler(this.muiBtnDelete_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.muiBtnAdd = ((FirstFloor.ModernUI.Windows.Controls.ModernButton)(target));

            #line 118 "..\..\..\..\Pages\Setting\Product.xaml"
                this.muiBtnAdd.Click += new System.Windows.RoutedEventHandler(this.muiBtnAdd_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.muiBtnImport = ((FirstFloor.ModernUI.Windows.Controls.ModernButton)(target));

            #line 123 "..\..\..\..\Pages\Setting\Product.xaml"
                this.muiBtnImport.Click += new System.Windows.RoutedEventHandler(this.muiBtnImport_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.muiBtnExport = ((FirstFloor.ModernUI.Windows.Controls.ModernButton)(target));

            #line 128 "..\..\..\..\Pages\Setting\Product.xaml"
                this.muiBtnExport.Click += new System.Windows.RoutedEventHandler(this.muiBtnExport_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.tblNumProduct = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 17:
                this.txbSearch = ((System.Windows.Controls.TextBox)(target));

            #line 138 "..\..\..\..\Pages\Setting\Product.xaml"
                this.txbSearch.KeyDown += new System.Windows.Input.KeyEventHandler(this.txbSearch_KeyDown);

            #line default
            #line hidden
                return;

            case 18:
                this.muiBtnSearch = ((FirstFloor.ModernUI.Windows.Controls.ModernButton)(target));

            #line 139 "..\..\..\..\Pages\Setting\Product.xaml"
                this.muiBtnSearch.Click += new System.Windows.RoutedEventHandler(this.muiBtnSearch_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.cb_SortBy_prod = ((System.Windows.Controls.ComboBox)(target));

            #line 159 "..\..\..\..\Pages\Setting\Product.xaml"
                this.cb_SortBy_prod.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cb_SortBy_prod_SelectionChanged);

            #line default
            #line hidden
                return;

            case 20:
                this.UCSortDirect = ((CashierRegister.UserControls.BCButtonAscDesc)(target));
                return;

            case 21:
                this.mprpro = ((FirstFloor.ModernUI.Windows.Controls.ModernProgressRing)(target));
                return;

            case 22:
                this.dtgProduct = ((System.Windows.Controls.DataGrid)(target));

            #line 171 "..\..\..\..\Pages\Setting\Product.xaml"
                this.dtgProduct.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.dtgProduct_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 23:
                this.chkCheckAll = ((System.Windows.Controls.CheckBox)(target));

            #line 176 "..\..\..\..\Pages\Setting\Product.xaml"
                this.chkCheckAll.Checked += new System.Windows.RoutedEventHandler(this.chkCheckAll_Checked);

            #line default
            #line hidden

            #line 176 "..\..\..\..\Pages\Setting\Product.xaml"
                this.chkCheckAll.Unchecked += new System.Windows.RoutedEventHandler(this.chkCheckAll_Unchecked);

            #line default
            #line hidden
                return;

            case 27:
                this.spPaging = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 28:
                this.hplHistory = ((System.Windows.Documents.Hyperlink)(target));

            #line 368 "..\..\..\..\Pages\Setting\Product.xaml"
                this.hplHistory.Click += new System.Windows.RoutedEventHandler(this.hplHistory_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
ファイル: Home.g.i.cs プロジェクト: khanhtuongIT/ShopCash
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\..\..\Pages\Home\Home.xaml"
                ((CashierRegister.Pages.Home.Home)(target)).LayoutUpdated += new System.EventHandler(this.UserControl_LayoutUpdated);

            #line default
            #line hidden

            #line 9 "..\..\..\..\Pages\Home\Home.xaml"
                ((CashierRegister.Pages.Home.Home)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);

            #line default
            #line hidden

            #line 9 "..\..\..\..\Pages\Home\Home.xaml"
                ((CashierRegister.Pages.Home.Home)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.UserControl_SizeChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.cd1 = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 3:
                this.cd3 = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 4:
                this.tblCustomer = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.tblTotalProduct = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.muiBtnCustomer = ((FirstFloor.ModernUI.Windows.Controls.ModernButton)(target));

            #line 33 "..\..\..\..\Pages\Home\Home.xaml"
                this.muiBtnCustomer.Click += new System.Windows.RoutedEventHandler(this.muiBtnCustomer_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.tblSumnProduct_Category = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            #line 42 "..\..\..\..\Pages\Home\Home.xaml"
                this.txbSearch.KeyDown += new System.Windows.Input.KeyEventHandler(this.txbSearch_KeyDown);

            #line default
            #line hidden
                return;

            case 9:
                this.muiBtnSearch = ((FirstFloor.ModernUI.Windows.Controls.ModernButton)(target));

            #line 48 "..\..\..\..\Pages\Home\Home.xaml"
                this.muiBtnSearch.Click += new System.Windows.RoutedEventHandler(this.muiBtnSearch_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.muiBtnScanBarcode = ((FirstFloor.ModernUI.Windows.Controls.ModernButton)(target));

            #line 53 "..\..\..\..\Pages\Home\Home.xaml"
                this.muiBtnScanBarcode.Click += new System.Windows.RoutedEventHandler(this.muiBtnScanBarcode_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.bdOrderDetail = ((System.Windows.Controls.Border)(target));

            #line 70 "..\..\..\..\Pages\Home\Home.xaml"
                this.bdOrderDetail.SizeChanged += new System.Windows.SizeChangedEventHandler(this.bdOrderDetail_SizeChanged);

            #line default
            #line hidden
                return;

            case 12:
                this.dtgOrderDetail = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 16:
                this.tblSubtotal = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 17:
                this.tblTax = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 18:
                this.tblTaxMoney = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 19:
                this.tblDiscount = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 20:
                this.tblDiscountMoney = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 21:
                this.tblTotal = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 22:
                this.bdUndo = ((System.Windows.Controls.Border)(target));
                return;

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

            #line 227 "..\..\..\..\Pages\Home\Home.xaml"
                this.btnUndo.MouseEnter += new System.Windows.Input.MouseEventHandler(this.btnUndo_MouseEnter);

            #line default
            #line hidden

            #line 227 "..\..\..\..\Pages\Home\Home.xaml"
                this.btnUndo.MouseLeave += new System.Windows.Input.MouseEventHandler(this.btnUndo_MouseLeave);

            #line default
            #line hidden

            #line 227 "..\..\..\..\Pages\Home\Home.xaml"
                this.btnUndo.Click += new System.Windows.RoutedEventHandler(this.btnUndo_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.bdSendEmail = ((System.Windows.Controls.Border)(target));
                return;

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

            #line 235 "..\..\..\..\Pages\Home\Home.xaml"
                this.btnSendEmail.MouseEnter += new System.Windows.Input.MouseEventHandler(this.btnSendEmail_MouseEnter);

            #line default
            #line hidden

            #line 235 "..\..\..\..\Pages\Home\Home.xaml"
                this.btnSendEmail.MouseLeave += new System.Windows.Input.MouseEventHandler(this.btnSendEmail_MouseLeave);

            #line default
            #line hidden

            #line 235 "..\..\..\..\Pages\Home\Home.xaml"
                this.btnSendEmail.Click += new System.Windows.RoutedEventHandler(this.btnSendEmail_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.bdClearAll = ((System.Windows.Controls.Border)(target));
                return;

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

            #line 243 "..\..\..\..\Pages\Home\Home.xaml"
                this.btnClearAll.MouseEnter += new System.Windows.Input.MouseEventHandler(this.btnClearAll_MouseEnter);

            #line default
            #line hidden

            #line 243 "..\..\..\..\Pages\Home\Home.xaml"
                this.btnClearAll.MouseLeave += new System.Windows.Input.MouseEventHandler(this.btnClearAll_MouseLeave);

            #line default
            #line hidden

            #line 243 "..\..\..\..\Pages\Home\Home.xaml"
                this.btnClearAll.Click += new System.Windows.RoutedEventHandler(this.btnClearAll_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.bdPayCash = ((System.Windows.Controls.Border)(target));
                return;

            case 29:
                this.btnPayCash = ((System.Windows.Controls.Button)(target));

            #line 251 "..\..\..\..\Pages\Home\Home.xaml"
                this.btnPayCash.MouseEnter += new System.Windows.Input.MouseEventHandler(this.btnPayCash_MouseEnter);

            #line default
            #line hidden

            #line 251 "..\..\..\..\Pages\Home\Home.xaml"
                this.btnPayCash.MouseLeave += new System.Windows.Input.MouseEventHandler(this.btnPayCash_MouseLeave);

            #line default
            #line hidden

            #line 251 "..\..\..\..\Pages\Home\Home.xaml"
                this.btnPayCash.Click += new System.Windows.RoutedEventHandler(this.btnPayCash_Click);

            #line default
            #line hidden
                return;

            case 30:
                this.bdDiscount = ((System.Windows.Controls.Border)(target));
                return;

            case 31:
                this.btnDiscount = ((System.Windows.Controls.Button)(target));

            #line 259 "..\..\..\..\Pages\Home\Home.xaml"
                this.btnDiscount.MouseEnter += new System.Windows.Input.MouseEventHandler(this.btnDiscount_MouseEnter);

            #line default
            #line hidden

            #line 259 "..\..\..\..\Pages\Home\Home.xaml"
                this.btnDiscount.MouseLeave += new System.Windows.Input.MouseEventHandler(this.btnDiscount_MouseLeave);

            #line default
            #line hidden

            #line 259 "..\..\..\..\Pages\Home\Home.xaml"
                this.btnDiscount.Click += new System.Windows.RoutedEventHandler(this.btnDiscount_Click);

            #line default
            #line hidden
                return;

            case 32:
                this.bdSalesperson = ((System.Windows.Controls.Border)(target));
                return;

            case 33:
                this.btnSalesperson = ((System.Windows.Controls.Button)(target));

            #line 275 "..\..\..\..\Pages\Home\Home.xaml"
                this.btnSalesperson.MouseEnter += new System.Windows.Input.MouseEventHandler(this.btnSalesperson_MouseEnter);

            #line default
            #line hidden

            #line 275 "..\..\..\..\Pages\Home\Home.xaml"
                this.btnSalesperson.MouseLeave += new System.Windows.Input.MouseEventHandler(this.btnSalesperson_MouseLeave);

            #line default
            #line hidden

            #line 275 "..\..\..\..\Pages\Home\Home.xaml"
                this.btnSalesperson.Click += new System.Windows.RoutedEventHandler(this.btnSalesperson_Click);

            #line default
            #line hidden
                return;

            case 34:
                this.gs = ((System.Windows.Controls.GridSplitter)(target));
                return;

            case 35:
                this.stp_home_sort = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 36:
                this.cb_SortBy = ((System.Windows.Controls.ComboBox)(target));

            #line 315 "..\..\..\..\Pages\Home\Home.xaml"
                this.cb_SortBy.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cb_SortBy_SelectionChanged);

            #line default
            #line hidden
                return;

            case 37:
                this.UCSortDirect = ((CashierRegister.UserControls.BCButtonAscDesc)(target));
                return;

            case 38:
                this.mprProduct = ((FirstFloor.ModernUI.Windows.Controls.ModernProgressRing)(target));
                return;

            case 39:
                this.wpProduct = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 40:
                this.spPaging = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 41:
                this.prbScanBarcode = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 42:
                this.txbBarcode = ((System.Windows.Controls.TextBox)(target));

            #line 334 "..\..\..\..\Pages\Home\Home.xaml"
                this.txbBarcode.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txbBarcode_TextChanged);

            #line default
            #line hidden

            #line 334 "..\..\..\..\Pages\Home\Home.xaml"
                this.txbBarcode.LostFocus += new System.Windows.RoutedEventHandler(this.txbBarcode_LostFocus);

            #line default
            #line hidden

            #line 334 "..\..\..\..\Pages\Home\Home.xaml"
                this.txbBarcode.GotFocus += new System.Windows.RoutedEventHandler(this.txbBarcode_GotFocus);

            #line default
            #line hidden
                return;

            case 43:
                this.mprcat = ((FirstFloor.ModernUI.Windows.Controls.ModernProgressRing)(target));
                return;

            case 44:
                this.scvCategory = ((System.Windows.Controls.ScrollViewer)(target));

            #line 341 "..\..\..\..\Pages\Home\Home.xaml"
                this.scvCategory.PreviewMouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.scvCategory_PreviewMouseWheel);

            #line default
            #line hidden
                return;

            case 45:
                this.wpCategory = ((System.Windows.Controls.WrapPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }