Exemple #1
0
        private void btnAddFacturas_Click(object sender, EventArgs e)
        {
            ClienteBECollection _ClienteBECollection = new ClienteBECollection();
            ClienteBE           wClienteBE           = new ClienteBE();

            wClienteBE.Apellido  = "Oviedo";
            wClienteBE.Nombre    = "Marcelo Fabian";
            wClienteBE.IdCliente = 345;

            _ClienteBECollection.Add(wClienteBE);

            wClienteBE = new ClienteBE();

            wClienteBE.Apellido  = "Braida";
            wClienteBE.Nombre    = "Hernan de las pasturas";
            wClienteBE.IdCliente = 120;


            _ClienteBECollection.Add(wClienteBE);

            wClienteBE = new ClienteBE();

            wClienteBE.Apellido  = "Honda";
            wClienteBE.Nombre    = "Kamakawa";
            wClienteBE.IdCliente = 3000;


            _ClienteBECollection.Add(wClienteBE);

            fwkFlatComboBox1.DataSource = _ClienteBECollection;
            clietnteBECollectionBindingSource.DataSource = wClienteBE;
        }
Exemple #2
0
 /// <summary>
 /// Metodo estatico que retorna un objeto ClienteBECollection apartir de un xml.-
 /// </summary>
 /// <param name="pXml">String con el xml</param>
 /// <returns>ClienteBECollection</returns>
 public static ClienteBECollection GetClienteBECollectionFromXml(String pXml)
 {
     return(ClienteBECollection.GetFromXml <ClienteBECollection>(pXml));
 }