private void btnPedidos_Click(object sender, RoutedEventArgs e) { VPedidos vp = new VPedidos(); this.IsEnabled = true; vp.Owner = this; vp.Show(); }
private void abrirVentana(string empleado, string tipo) { //MessageBox.Show("Bienvenido " + "---" + tipo + "---"); Informacion.usuario = empleado; switch (tipo) { case "Administrador": VAdministrador admin = new VAdministrador(); admin.ShowDialog(); break; case "Cajero": VPedidos ped = new VPedidos(); ped.ShowDialog(); break; default: VPreparacion prepa = new VPreparacion(); prepa.ShowDialog(); break; } }