/// <summary>
        /// Implementation of ControlInterface interface
        /// </summary>
        /// <remarks>
        /// Loads control data
        /// </remarks>
        public void LoadData()
        {
            if(useRealEntity)
            {
                this.clientAppService.RetrieveEntityClients();
                this.facturaAppService.RetrieveEntityFacturas();
                this.dataGridViewClientes.DataSource = null;
                this.dataGridViewClientes.DataSource = clientAppService.GeClients();
            }

            else
            {

            this.ClientEntity = this.clientAppService.RetrieveXSDClients();
            this.dataGridViewClientes.DataSource = this.ClientEntity.ClientDS.Client;
            this.FacturaEntity=this.facturaAppService.RetrieveXSDFacturas(this.ClientEntity.ClientDS.Client.Select(x => x.Id).ToList());
            this.dataGridViewClientes_SelectionChanged(this.dataGridViewClientes, null);

            }
        }
 /// <summary>
 /// Retrieves all Facturas Entities
 /// </summary>
 /// <remarks>
 /// Retrieves all
 /// </remarks>
 /// <returns>FacturaXSD entity</returns>   
 /// <param name="clients">Listado de clientes</param>
 public FacturaXSD RetrieveXSDFacturas(List<int> clients)
 {
     this.facturaEntity = this.facturaRepository.RetrieveFacturas(clients);
     return this.facturaEntity;
 }
 /// <summary>
 /// Updates Facturas Entities
 /// </summary>
 /// <remarks>
 /// Updates Method
 /// </remarks>
 /// <param name="facturaXSD">Factura entity to update</param>       
 public void UpdateFacturas(FacturaXSD facturaXSD)
 {
     return;
 }
 /// <summary>
 /// Retrieves all Facturas Entities
 /// </summary>
 /// <remarks>
 /// Retrieves all
 /// </remarks>
 /// <returns>FacturaXSD entity</returns>   
 public FacturaXSD RetrieveXSDFacturas()
 {
     this.facturaEntity = this.facturaRepository.RetrieveFacturas();
     return this.facturaEntity;
 }