예제 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.purchasesUserControl = ((MyStore.Views.PurchasesUserControlView)(target));
                return;

            case 2:
                this.customerComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 3:
                this.searchBox = ((MyStore.Helpers.NumericTextBox)(target));
                return;

            case 4:
                this.effect = ((System.Windows.Media.Effects.DropShadowEffect)(target));
                return;

            case 5:
                this.filterFromDatePicker = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 6:
                this.filterToDatePicker = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 7:
                this.addPurchaseToggleButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 8:
                this.addPurchasePopup = ((MyStore.Helpers.NonTopmostPopup)(target));
                return;

            case 9:
                this.popupAddPurchaseStatusComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 10:
                this.popupAddPurchasePlaceTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:
                this.popupAddPurchaseReceivedDatePicker = ((System.Windows.Controls.DatePicker)(target));
                return;

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

            case 13:
                this.updatePurchaseToggleButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 14:
                this.updatePurchasePopup = ((MyStore.Helpers.NonTopmostPopup)(target));
                return;

            case 15:
                this.popupUpdatePurchaseStatusComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 16:
                this.popupUpdatePurchasePlaceTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 17:
                this.popupUpdatePurchaseReceivedDatePicker = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 18:
                this.purchaseDataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 19:
                this.addPurchaseDetailToggleButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 20:
                this.addPurchaseDetailPopup = ((MyStore.Helpers.NonTopmostPopup)(target));
                return;

            case 21:
                this.popupAddPurchaseDetailCategoryComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            case 23:
                this.popupAddPurchaseDetailQuantityTextBox = ((MyStore.Helpers.NumericTextBox)(target));
                return;

            case 24:
                this.updatePurchaseDetailToggleButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 25:
                this.updatePurchaseDetailPopup = ((MyStore.Helpers.NonTopmostPopup)(target));
                return;

            case 26:
                this.popupUpdatePurchaseDetailCategoryComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 27:
                this.popupUpdatePurchaseDetailProductComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 28:
                this.popupUpdatePurchaseDetailQuantityTextBox = ((MyStore.Helpers.NumericTextBox)(target));
                return;

            case 29:
                this.purchaseDetailDataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.customersUserControl = ((MyStore.Views.CustomersUserControlView)(target));
                return;

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

            case 3:
                this.effect = ((System.Windows.Media.Effects.DropShadowEffect)(target));
                return;

            case 4:
                this.addCustomerToggleButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 5:
                this.addCustomerPopup = ((MyStore.Helpers.NonTopmostPopup)(target));
                return;

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

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

            case 8:
                this.popupAddCustomerTelTextBox = ((MyStore.Helpers.NumericTextBox)(target));
                return;

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

            case 10:
                this.updateCustomerToggleButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 11:
                this.updateCustomerPopup = ((MyStore.Helpers.NonTopmostPopup)(target));
                return;

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

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

            case 14:
                this.popupUpdateCustomerTelTextBox = ((MyStore.Helpers.NumericTextBox)(target));
                return;

            case 15:
                this.customerDataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.inventoryUserControl = ((MyStore.Views.InventoryUserControlView)(target));
                return;

            case 2:
                this.categoryComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 3:
                this.addCategoryToggleButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 4:
                this.addCategoryPopup = ((MyStore.Helpers.NonTopmostPopup)(target));
                return;

            case 5:
                this.popupAddCategoryTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 7:
                this.updateCategoryToggleButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 8:
                this.updateCategoryPopup = ((MyStore.Helpers.NonTopmostPopup)(target));
                return;

            case 9:
                this.popupUpdateCategoryTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

            case 12:
                this.effect = ((System.Windows.Media.Effects.DropShadowEffect)(target));
                return;

            case 13:
                this.addProductToggleButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 14:
                this.addProductPopup = ((MyStore.Helpers.NonTopmostPopup)(target));
                return;

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

            case 16:
                this.popupAddProductColorTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 17:
                this.popupAddProductPriceTextBox = ((MyStore.Helpers.NumericTextBox)(target));
                return;

            case 18:
                this.popupAddProductCategoryComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 19:
                this.popupAddProductTotalTextBox = ((MyStore.Helpers.NumericTextBox)(target));
                return;

            case 20:
                this.popupAddProductSoldTextBox = ((MyStore.Helpers.NumericTextBox)(target));
                return;

            case 21:
                this.popupAddProductRemainTextBox = ((MyStore.Helpers.NumericTextBox)(target));
                return;

            case 22:
                this.popupAddProductDescriptionTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 23:
                this.updateProductToggleButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 24:
                this.updateProductPopup = ((MyStore.Helpers.NonTopmostPopup)(target));
                return;

            case 25:
                this.popupUpdateProductNameTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 27:
                this.popupUpdateProductPriceTextBox = ((MyStore.Helpers.NumericTextBox)(target));
                return;

            case 28:
                this.popupUpdateProductCategoryComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 29:
                this.popupUpdateProductTotalTextBox = ((MyStore.Helpers.NumericTextBox)(target));
                return;

            case 30:
                this.popupUpdateProductSoldTextBox = ((MyStore.Helpers.NumericTextBox)(target));
                return;

            case 31:
                this.popupUpdateProductRemainTextBox = ((MyStore.Helpers.NumericTextBox)(target));
                return;

            case 32:
                this.popupUpdateProductDescriptionTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 33:
                this.productListView = ((System.Windows.Controls.ListView)(target));
                return;

            case 34:
                this.detailIdTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 35:
                this.detailSkuTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 36:
                this.detailNameTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 37:
                this.detailColorTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 38:
                this.detailPriceTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 39:
                this.detailCategoryComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 40:
                this.detailTotalTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 41:
                this.detailSoldTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 43:
                this.detailDescriptionTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 44:
                this.imageListView = ((System.Windows.Controls.ListView)(target));
                return;
            }
            this._contentLoaded = true;
        }