private void ConfirmTrading_Closing(object sender, System.ComponentModel.CancelEventArgs e) { VentanaCompras compras = new VentanaCompras(); this.Hide(); compras.Show(); }
public Confirm_trading() { InitializeComponent(); VentanaCompras ventana = new VentanaCompras(); txtNameObj.Text = ventana.TxtNameItem.Text; txtDescObj.Text = ventana.txtDescItem.Text; }
void button_click(object sender, RoutedEventArgs e) { Button btn = sender as Button; string ReplaceName = btn.Name; NameBtn = ReplaceName.Replace("btn", ""); VentanaCompras buyit = new VentanaCompras(); buyit.Show(); this.Hide(); }