/// <summary> /// Open the Inventory Management Window /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btn_EditInventory_Click(object sender, RoutedEventArgs e) { try { // Open the inventory management window InventoryWindow iw = new InventoryWindow(); iw.Show(); } catch (Exception ex) { MessageBox.Show(ex.Source + ":::" + ex.Message); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.winInventory = ((CS3280_GroupProject.InventoryWindow)(target)); return; case 2: this.btnUpdate = ((System.Windows.Controls.Button)(target)); #line 23 "..\..\InventoryWindow.xaml" this.btnUpdate.Click += new System.Windows.RoutedEventHandler(this.btnUpdate_Click_1); #line default #line hidden return; case 3: this.btnAddNewItem = ((System.Windows.Controls.Button)(target)); #line 31 "..\..\InventoryWindow.xaml" this.btnAddNewItem.Click += new System.Windows.RoutedEventHandler(this.btnAddNewItem_Click); #line default #line hidden return; case 4: this.btnCloseMenu = ((System.Windows.Controls.Button)(target)); #line 39 "..\..\InventoryWindow.xaml" this.btnCloseMenu.Click += new System.Windows.RoutedEventHandler(this.btnCloseMenu_Click); #line default #line hidden return; case 5: this.Query_Data = ((System.Windows.Controls.DataGrid)(target)); return; case 6: this.lblItemCode = ((System.Windows.Controls.Label)(target)); return; case 7: this.btnCLearForm = ((System.Windows.Controls.Button)(target)); #line 58 "..\..\InventoryWindow.xaml" this.btnCLearForm.Click += new System.Windows.RoutedEventHandler(this.btnCLearForm_Click); #line default #line hidden return; case 8: this.txtItemDesc = ((System.Windows.Controls.TextBox)(target)); #line 66 "..\..\InventoryWindow.xaml" this.txtItemDesc.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtItemDesc_TextChanged); #line default #line hidden return; case 9: this.txtItemCost = ((System.Windows.Controls.TextBox)(target)); return; case 10: this.lblItemDesc = ((System.Windows.Controls.Label)(target)); return; case 11: this.lblCost = ((System.Windows.Controls.Label)(target)); return; case 12: this.txtItemCost_Copy = ((System.Windows.Controls.TextBox)(target)); #line 77 "..\..\InventoryWindow.xaml" this.txtItemCost_Copy.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtItemCost_Copy_TextChanged); #line default #line hidden return; case 13: this.txtItemCode = ((System.Windows.Controls.TextBox)(target)); #line 85 "..\..\InventoryWindow.xaml" this.txtItemCode.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtItemCode_TextChanged); #line default #line hidden return; case 14: this.lblItemCode1 = ((System.Windows.Controls.Label)(target)); return; case 15: this.btnDeleteItem = ((System.Windows.Controls.Button)(target)); #line 95 "..\..\InventoryWindow.xaml" this.btnDeleteItem.Click += new System.Windows.RoutedEventHandler(this.btnDeleteItem_Click); #line default #line hidden return; case 16: this.cm_Item = ((System.Windows.Controls.ComboBox)(target)); #line 104 "..\..\InventoryWindow.xaml" this.cm_Item.DropDownOpened += new System.EventHandler(this.cm_Item_DropDownOpened); #line default #line hidden #line 104 "..\..\InventoryWindow.xaml" this.cm_Item.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cm_Item_SelectionChanged); #line default #line hidden return; case 17: this.lb_InvoiceID = ((System.Windows.Controls.TextBlock)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.winInventory = ((CS3280_GroupProject.InventoryWindow)(target)); return; case 2: this.btnUpdate = ((System.Windows.Controls.Button)(target)); #line 17 "..\..\InventoryWindow.xaml" this.btnUpdate.Click += new System.Windows.RoutedEventHandler(this.btnUpdate_Click_1); #line default #line hidden return; case 3: this.btnAddNewItem = ((System.Windows.Controls.Button)(target)); #line 18 "..\..\InventoryWindow.xaml" this.btnAddNewItem.Click += new System.Windows.RoutedEventHandler(this.btnAddNewItem_Click); #line default #line hidden return; case 4: this.btnCloseMenu = ((System.Windows.Controls.Button)(target)); #line 19 "..\..\InventoryWindow.xaml" this.btnCloseMenu.Click += new System.Windows.RoutedEventHandler(this.btnCloseMenu_Click); #line default #line hidden return; case 5: this.Query_Data = ((System.Windows.Controls.DataGrid)(target)); return; case 6: this.cmbGetItemCode = ((System.Windows.Controls.ComboBox)(target)); return; case 7: this.lblItemCode = ((System.Windows.Controls.Label)(target)); return; case 8: this.btnCLearForm = ((System.Windows.Controls.Button)(target)); #line 33 "..\..\InventoryWindow.xaml" this.btnCLearForm.Click += new System.Windows.RoutedEventHandler(this.btnCLearForm_Click); #line default #line hidden return; case 9: this.txtItemDesc = ((System.Windows.Controls.TextBox)(target)); return; case 10: this.txtItemCost = ((System.Windows.Controls.TextBox)(target)); return; case 11: this.lblItemDesc = ((System.Windows.Controls.Label)(target)); return; case 12: this.lblCost = ((System.Windows.Controls.Label)(target)); return; case 13: this.txtItemCost_Copy = ((System.Windows.Controls.TextBox)(target)); return; case 14: this.txtItemCode = ((System.Windows.Controls.TextBox)(target)); return; case 15: this.lblItemCode1 = ((System.Windows.Controls.Label)(target)); return; case 16: this.btnDeleteItem = ((System.Windows.Controls.Button)(target)); #line 41 "..\..\InventoryWindow.xaml" this.btnDeleteItem.Click += new System.Windows.RoutedEventHandler(this.btnDeleteItem_Click); #line default #line hidden return; } this._contentLoaded = true; }