private void btnAgregarPedido_Click(object sender, System.EventArgs e) { if (!Validar.ValidarUnaPantalla(new PantallaRegistrarPedido("").GetType())) { Interface = new InterfaceUsuario(this); Interface.DesplegarPantallaRegistrarPedido(Usuario); } }
private void button1_Click(object sender, EventArgs e) { if (!Validar.ValidarUnaPantalla(new PantallaRegistrarPedido(null).GetType())) { Interface = new InterfaceUsuario(this); Interface.DesplegarPantallaRegistrarPedido(Usuario); } }