Beispiel #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainPane = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 2:
                this.Configuration = ((PointOfSale.ConfigurationManager)(target));
                return;

            case 3:
                this.buttonAdd = ((PointOfSale.PushButton)(target));
                return;

            case 4:
                this.buttonSearch = ((PointOfSale.PushButton)(target));
                return;

            case 5:
                this.buttonFindNext = ((PointOfSale.PushButton)(target));
                return;

            case 6:
                this.buttonUpdate = ((PointOfSale.PushButton)(target));
                return;

            case 7:
                this.buttonCancel = ((PointOfSale.PushButton)(target));
                return;

            case 8:
                this.listBox1 = ((PointOfSale.DragScrollListBox)(target));
                return;

            case 9:
                this.editorControl = ((PointOfSale.IngredientEditorControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainPane = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 2:
                this.Configuration = ((PosControls.ConfigurationManager)(target));
                return;

            case 3:
                this.buttonAdd = ((PosControls.TextBlockButton)(target));

            #line 34 "..\..\..\ItemMaintenanceControl.xaml"
                this.buttonAdd.Click += new System.Windows.RoutedEventHandler(this.buttonAdd_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.buttonDelete = ((PosControls.TextBlockButton)(target));

            #line 35 "..\..\..\ItemMaintenanceControl.xaml"
                this.buttonDelete.Click += new System.Windows.RoutedEventHandler(this.buttonDelete_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.buttonSearch = ((PosControls.TextBlockButton)(target));

            #line 37 "..\..\..\ItemMaintenanceControl.xaml"
                this.buttonSearch.Click += new System.Windows.RoutedEventHandler(this.buttonSearch_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.buttonFindNext = ((PosControls.TextBlockButton)(target));

            #line 38 "..\..\..\ItemMaintenanceControl.xaml"
                this.buttonFindNext.Click += new System.Windows.RoutedEventHandler(this.buttonFindNext_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.buttonEdit = ((PosControls.TextBlockButton)(target));

            #line 40 "..\..\..\ItemMaintenanceControl.xaml"
                this.buttonEdit.Click += new System.Windows.RoutedEventHandler(this.buttonEdit_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.buttonView = ((PosControls.TextBlockButton)(target));

            #line 41 "..\..\..\ItemMaintenanceControl.xaml"
                this.buttonView.Click += new System.Windows.RoutedEventHandler(this.buttonView_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.buttonUpdate = ((PosControls.TextBlockButton)(target));

            #line 44 "..\..\..\ItemMaintenanceControl.xaml"
                this.buttonUpdate.Click += new System.Windows.RoutedEventHandler(this.buttonUpdate_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.buttonCancel = ((PosControls.TextBlockButton)(target));

            #line 45 "..\..\..\ItemMaintenanceControl.xaml"
                this.buttonCancel.Click += new System.Windows.RoutedEventHandler(this.buttonCancel_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.groupBoxList = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 12:
                this.listBoxItems = ((PosControls.DragScrollListBox)(target));

            #line 49 "..\..\..\ItemMaintenanceControl.xaml"
                this.listBoxItems.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.listBoxItems_SelectionChanged);

            #line default
            #line hidden
                return;

            case 13:
                this.listBoxFilteredItems = ((PosControls.DragScrollListBox)(target));

            #line 50 "..\..\..\ItemMaintenanceControl.xaml"
                this.listBoxFilteredItems.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.listBoxFilteredItems_SelectionChanged);

            #line default
            #line hidden
                return;

            case 14:
                this.listBoxCategories = ((PosControls.DragScrollListBox)(target));

            #line 51 "..\..\..\ItemMaintenanceControl.xaml"
                this.listBoxCategories.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.listBoxCategories_SelectionChanged);

            #line default
            #line hidden
                return;

            case 15:
                this.listBoxItemOption = ((PosControls.DragScrollListBox)(target));

            #line 52 "..\..\..\ItemMaintenanceControl.xaml"
                this.listBoxItemOption.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.listBoxItemOption_SelectionChanged);

            #line default
            #line hidden
                return;

            case 16:
                this.listBoxIngredient = ((PosControls.DragScrollListBox)(target));

            #line 53 "..\..\..\ItemMaintenanceControl.xaml"
                this.listBoxIngredient.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.listBoxIngredient_SelectionChanged);

            #line default
            #line hidden
                return;

            case 17:
                this.groupBoxItems = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 18:
                this.itemEditorControl = ((PointOfSale.ItemEditorControl)(target));
                return;

            case 19:
                this.groupBoxItemOptions = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 20:
                this.itemOptionSetEditorControl = ((PointOfSale.ItemOptionSetEditorControl)(target));
                return;

            case 21:
                this.groupBoxCategories = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 22:
                this.categoryEditorControl = ((PointOfSale.CategoryEditorControl)(target));
                return;

            case 23:
                this.groupBoxIngredients = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 24:
                this.ingredientEditorControl = ((PointOfSale.IngredientEditorControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainPane = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 2:
                this.Configuration = ((PointOfSale.ConfigurationManager)(target));
                return;

            case 3:
                this.buttonAdd = ((PosControls.PushButton)(target));

            #line 43 "..\..\..\ItemMaintenanceControl.xaml"
                this.buttonAdd.Selected += new System.EventHandler(this.button_Selected);

            #line default
            #line hidden
                return;

            case 4:
                this.buttonSearch = ((PosControls.PushButton)(target));

            #line 44 "..\..\..\ItemMaintenanceControl.xaml"
                this.buttonSearch.Selected += new System.EventHandler(this.button_Selected);

            #line default
            #line hidden
                return;

            case 5:
                this.buttonFindNext = ((PosControls.PushButton)(target));

            #line 45 "..\..\..\ItemMaintenanceControl.xaml"
                this.buttonFindNext.Selected += new System.EventHandler(this.button_Selected);

            #line default
            #line hidden
                return;

            case 6:
                this.buttonView = ((PosControls.PushButton)(target));

            #line 46 "..\..\..\ItemMaintenanceControl.xaml"
                this.buttonView.Selected += new System.EventHandler(this.button_Selected);

            #line default
            #line hidden
                return;

            case 7:
                this.buttonUpdate = ((PosControls.PushButton)(target));

            #line 49 "..\..\..\ItemMaintenanceControl.xaml"
                this.buttonUpdate.Selected += new System.EventHandler(this.button_Selected);

            #line default
            #line hidden
                return;

            case 8:
                this.buttonCancel = ((PosControls.PushButton)(target));

            #line 50 "..\..\..\ItemMaintenanceControl.xaml"
                this.buttonCancel.Selected += new System.EventHandler(this.button_Selected);

            #line default
            #line hidden
                return;

            case 9:
                this.listBox1 = ((PosControls.DragScrollListBox)(target));

            #line 52 "..\..\..\ItemMaintenanceControl.xaml"
                this.listBox1.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.listBox1_SelectionChanged);

            #line default
            #line hidden
                return;

            case 10:
                this.itemEditorControl = ((PointOfSale.ItemEditorControl)(target));
                return;

            case 11:
                this.itemOptionSetEditorControl = ((PointOfSale.ItemOptionSetEditorControl)(target));
                return;

            case 12:
                this.categoryEditorControl = ((PointOfSale.CategoryEditorControl)(target));
                return;

            case 13:
                this.ingredientEditorControl = ((PointOfSale.IngredientEditorControl)(target));
                return;
            }
            this._contentLoaded = true;
        }