private void ValidatePedidoFields() { if (!carrito.ExistElements()) { throw new Exception("Debe Ingresar Alimentos o Ofertas"); } if (cboClientes.SelectedValue == "0") { throw new Exception("Debe seleccionar un cliente"); } if (cboTipoPedido.SelectedValue == "0") { throw new Exception("Debe Seleccionar un tipo de pedido"); } if (cboTipoPago.SelectedValue == "0") { throw new Exception("Debe Seleccionar un tipo de pago"); } }