예제 #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));
 }