示例#1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((Group_Project_Prototype.Main.MainWindow)(target));
                return;

            case 2:
                this.openMenu = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 3:
                this.searchMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 15 "..\..\MainWindow.xaml"
                this.searchMenuItem.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.editMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 16 "..\..\MainWindow.xaml"
                this.editMenuItem.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

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

            #line 23 "..\..\MainWindow.xaml"
                this.addInvoiceBtn.Click += new System.Windows.RoutedEventHandler(this.addInvoiceBtn_Click);

            #line default
            #line hidden
                return;

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

            case 7:
                this.deleteInvoiceBtn = ((System.Windows.Controls.Button)(target));
                return;

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

            case 9:
                this.companyNameLbl = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.addInvoiceCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 11:
                this.itemsComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            case 13:
                this.itemLbl = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.itemCostLbl = ((System.Windows.Controls.Label)(target));
                return;

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

            case 16:
                this.dateLbl = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.workingInvoiceDataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 18:
                this.totalCostTxtBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 19:
                this.totalCostLbl = ((System.Windows.Controls.Label)(target));
                return;

            case 20:
                this.workingInvoiceLbl = ((System.Windows.Controls.Label)(target));
                return;

            case 21:
                this.addItemBtn = ((System.Windows.Controls.Button)(target));
                return;

            case 22:
                this.saveInvoiceBtn = ((System.Windows.Controls.Button)(target));
                return;

            case 23:
                this.selectedInvoiceLbl = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((Group_Project_Prototype.Main.MainWindow)(target));
                return;

            case 2:
                this.openMenu = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 3:
                this.searchMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 15 "..\..\..\Main\MainWindow.xaml"
                this.searchMenuItem.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.editMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 16 "..\..\..\Main\MainWindow.xaml"
                this.editMenuItem.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

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

            #line 23 "..\..\..\Main\MainWindow.xaml"
                this.addInvoiceBtn.Click += new System.Windows.RoutedEventHandler(this.addInvoiceBtn_Click);

            #line default
            #line hidden
                return;

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

            #line 24 "..\..\..\Main\MainWindow.xaml"
                this.editInvoiceBtn.Click += new System.Windows.RoutedEventHandler(this.editInvoiceBtn_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.deleteInvoiceBtn = ((System.Windows.Controls.Button)(target));

            #line 25 "..\..\..\Main\MainWindow.xaml"
                this.deleteInvoiceBtn.Click += new System.Windows.RoutedEventHandler(this.deleteInvoiceBtn_Click);

            #line default
            #line hidden
                return;

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

            #line 26 "..\..\..\Main\MainWindow.xaml"
                this.selectedInvoiceDataGrid.SelectedCellsChanged += new System.Windows.Controls.SelectedCellsChangedEventHandler(this.selectedInvoiceDataGrid_SelectedCellsChanged);

            #line default
            #line hidden
                return;

            case 9:
                this.companyNameLbl = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.addInvoiceCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 11:
                this.itemsComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 29 "..\..\..\Main\MainWindow.xaml"
                this.itemsComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.itemsComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

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

            case 13:
                this.itemLbl = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.itemCostLbl = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.dateLbl = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.workingInvoiceDataGrid = ((System.Windows.Controls.DataGrid)(target));

            #line 34 "..\..\..\Main\MainWindow.xaml"
                this.workingInvoiceDataGrid.SelectedCellsChanged += new System.Windows.Controls.SelectedCellsChangedEventHandler(this.workingInvoiceDataGrid_SelectedCellsChanged);

            #line default
            #line hidden
                return;

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

            case 18:
                this.totalCostLbl = ((System.Windows.Controls.Label)(target));
                return;

            case 19:
                this.workingInvoiceLbl = ((System.Windows.Controls.Label)(target));
                return;

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

            #line 38 "..\..\..\Main\MainWindow.xaml"
                this.addItemBtn.Click += new System.Windows.RoutedEventHandler(this.addItemBtn_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.saveInvoiceBtn = ((System.Windows.Controls.Button)(target));

            #line 39 "..\..\..\Main\MainWindow.xaml"
                this.saveInvoiceBtn.Click += new System.Windows.RoutedEventHandler(this.saveInvoiceBtn_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.invoiceDate = ((System.Windows.Controls.DatePicker)(target));
                return;

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

            #line 41 "..\..\..\Main\MainWindow.xaml"
                this.clearInvoiceBtn.Click += new System.Windows.RoutedEventHandler(this.clearInvoiceBtn_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.deleteItemBtn = ((System.Windows.Controls.Button)(target));

            #line 42 "..\..\..\Main\MainWindow.xaml"
                this.deleteItemBtn.Click += new System.Windows.RoutedEventHandler(this.deleteItemBtn_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.selectedInvoiceLbl = ((System.Windows.Controls.Label)(target));
                return;

            case 26:
                this.invoiceAddedCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

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

            #line 50 "..\..\..\Main\MainWindow.xaml"
                this.addInvoiceBtn2.Click += new System.Windows.RoutedEventHandler(this.addInvoiceBtn_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.itemEditCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 29:
                this.selectedItemCostTxt = ((System.Windows.Controls.TextBox)(target));
                return;

            case 30:
                this.selectedItemDescTxt = ((System.Windows.Controls.TextBox)(target));
                return;

            case 31:
                this.updateItemCbo = ((System.Windows.Controls.ComboBox)(target));

            #line 56 "..\..\..\Main\MainWindow.xaml"
                this.updateItemCbo.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.updateItemCbo_SelectionChanged);

            #line default
            #line hidden
                return;

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

            case 33:
                this.selectedItemLbl = ((System.Windows.Controls.Label)(target));
                return;

            case 34:
                this.newItemLbl = ((System.Windows.Controls.Label)(target));
                return;

            case 35:
                this.selectedItemCostLbl = ((System.Windows.Controls.Label)(target));
                return;

            case 36:
                this.newItemCostLbl = ((System.Windows.Controls.Label)(target));
                return;

            case 37:
                this.saveUpdatesBtn = ((System.Windows.Controls.Button)(target));

            #line 62 "..\..\..\Main\MainWindow.xaml"
                this.saveUpdatesBtn.Click += new System.Windows.RoutedEventHandler(this.saveUpdatesBtn_Click);

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