/// <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>
 /// Updates Clients Entities
 /// </summary>
 /// <remarks>
 /// Updates Method
 /// </remarks>
 /// <param name="clientXSD">Client entity to update</param>       
 public void UpdateXSDClients(ClientXSD clientXSD)
 {
     this.clientEntity.SetNewData();
     this.clientRepository.UpdateClients(clientXSD);
 }
 /// <summary>
 /// Implementation of ControlInterface interface
 /// </summary>
 /// <remarks>
 /// Loads control data
 /// </remarks>
 public void LoadData()
 {
     if(useRealEntity)
     {
         clientAppService.RetrieveEntityClients();
         dataGridViewClientes.DataSource = null;
         dataGridViewClientes.DataSource = clientAppService.GeClients();
     }
     else
     {
         ClientEntity = clientAppService.RetrieveXSDClients();
         dataGridViewClientes.DataSource = ClientEntity.ClientDS.Client;
     }
 }
 /// <summary>
 /// Retrieves all Clients XSD
 /// </summary>
 /// <remarks>
 /// Retrieves all
 /// </remarks>
 /// <returns>ClientXSD entity</returns>   
 public ClientXSD RetrieveXSDClients()
 {
     this.clientEntity = this.clientRepository.RetrieveClients();
     return this.clientEntity;
 }