private void btnEditProductWindow_Click(object sender, RoutedEventArgs e) { var epwindow = new EditProductWindow(); epwindow.Show(); this.Close(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.wndEditProduct = ((AutoPartsInventorySystem.EditProductWindow)(target)); return; case 2: this.tbxEditProductName = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.tbxEditProductType = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.tbxEditQuantity = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.tbxEditColor = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.tbxEditBuyingPrice = ((System.Windows.Controls.TextBox)(target)); return; case 7: this.tbxEditSellingPrice = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.btnEditProduct = ((System.Windows.Controls.Button)(target)); #line 138 "..\..\..\EditWindows\EditProductWindow.xaml" this.btnEditProduct.Click += new System.Windows.RoutedEventHandler(this.btnEditProduct_Click); #line default #line hidden return; case 9: this.btnCancelEditProduct = ((System.Windows.Controls.Button)(target)); #line 146 "..\..\..\EditWindows\EditProductWindow.xaml" this.btnCancelEditProduct.Click += new System.Windows.RoutedEventHandler(this.btnCancelEditProduct_Click); #line default #line hidden return; } this._contentLoaded = true; }