private void btnAddProductWindow_Click(object sender, RoutedEventArgs e) { var apwindow = new AddProductWindow(); apwindow.Show(); this.Close(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.wndAddProduct = ((AutoPartsInventorySystem.AddProductWindow)(target)); return; case 2: this.tbxProductName = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.tbxProductType = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.tbxQuantity = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.tbxColor = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.tbxBuyingPrice = ((System.Windows.Controls.TextBox)(target)); return; case 7: this.tbxSellingPrice = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.btnAddProduct = ((System.Windows.Controls.Button)(target)); #line 132 "..\..\..\AddWindows\AddProductWindow.xaml" this.btnAddProduct.Click += new System.Windows.RoutedEventHandler(this.btnAddProduct_Click); #line default #line hidden return; case 9: this.btnCancelAddProduct = ((System.Windows.Controls.Button)(target)); #line 140 "..\..\..\AddWindows\AddProductWindow.xaml" this.btnCancelAddProduct.Click += new System.Windows.RoutedEventHandler(this.btnCancelAddProduct_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.wndAddProduct = ((AutoPartsInventorySystem.AddProductWindow)(target)); return; case 2: this.tbxProductName = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.tbxProductType = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.tbxQuantity = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.tbxColor = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.tbxBuyingPrice = ((System.Windows.Controls.TextBox)(target)); return; case 7: this.tbxSellingPrice = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.btnAddProduct = ((System.Windows.Controls.Button)(target)); return; case 9: this.btnCancelAddProduct = ((System.Windows.Controls.Button)(target)); return; } this._contentLoaded = true; }