Пример #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;
        }
Пример #2
0
        private void fwkGenericDataGridView_Combo_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            ClienteBE wClienteBE = fwkGenericDataGridView_Combo.GetSelectedEntity <ClienteBE>();

            txtCliente.Text += "IdTipoCliente: " + wClienteBE.IdTipoCliente;
            txtCliente.Text += Environment.NewLine;
            txtCliente.Text  = wClienteBE.Nombre;
            txtCliente.Text += Environment.NewLine;
            txtCliente.Text += "Tipo Cliente: " + fwkGenericDataGridView_Combo.CurrentRow.Cells["IdTipoCliente"].Value.ToString();
        }
Пример #3
0
        private void btnGetEntiyt_Click(object sender, EventArgs e)
        {
            ClienteBE c = (ClienteBE)fwkFlatComboBox1.SelectedEntity;

            if (c == null)
            {
                textBox1.Text = "ClienteBE = NULL ";
                return;
            }

            textBox1.Text = c.GetXml();
        }
Пример #4
0
        private void fwkFlatComboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            ClienteBE c = (ClienteBE)fwkFlatComboBox1.SelectedEntity;

            if (c == null)
            {
                textBox1.Text = "ClienteBE = NULL ";
                return;
            }

            textBox1.Text = c.GetXml();
        }
Пример #5
0
 public FacturaBE()
 {
     _ClienteBE = new ClienteBE();
 }
Пример #6
0
 private void button1_Click(object sender, EventArgs e)
 {
     ClienteBE myLocatedObject = _ClienteBECollection.Find(delegate(Fwk.Bases.FrontEnd.Controls.Test.ClienteBE c)
                                                           { return(c.IdCliente == 120); });
 }
Пример #7
0
 /// <summary>
 /// Metodo estatico que retorna un objeto ClienteBE apartir de un xml.-
 /// </summary>
 /// <param name="pXml">String con el xml</param>
 /// <returns>ClienteBE</returns>
 public static ClienteBE GetClienteBEFromXml(String pXml)
 {
     return(ClienteBE.GetFromXml <ClienteBE>(pXml));
 }