private Task CancelarBuscarProducto(object arg) { View.Window1 principal = new View.Window1(); Application.Current.Windows[0].Close(); principal.Show(); return(null); }
//boton salir de ventana buscar private Task CancelarBuscarProducto(object arg) { //guardo el nombre del producto seleccionado if (SeleccionGrid != -1) { int indice = Convert.ToInt16(SeleccionGrid); productoSeleccionado = Productos[indice].Nombre.ToString(); } View.Window1 principal = new View.Window1(); Application.Current.Windows[0].Close(); principal.Show(); return(null); }