Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            m_ClienteCollectionBE = new ClienteCollectionBE();

            ClienteBE wClienteBE1 = new ClienteBE();

            wClienteBE1.EntityState     = EntityState.Changed;
            wClienteBE1.Nombre          = "Marcelo F Oviedo";
            wClienteBE1.Apellido        = "Pelsoft";
            wClienteBE1.Edad            = 32;
            wClienteBE1.Historial       = new Xml.CData();
            wClienteBE1.Historial.Text  = @"<Contrato Nro 21>";
            wClienteBE1.FechaNacimiento = Convert.ToDateTime("2006-10-18T00:00:00"); //new DateTime(2006,12,18);


            m_ClienteCollectionBE.Add(wClienteBE1);
            string ss = m_ClienteCollectionBE.ToString();

            label2.Text = "Xml de ClienteBE1";

            txtEntidadSimple.Text = wClienteBE1.GetXml();


            try
            {
                label1.Text        = "Xml de ClienteCollectionBE";
                txtCollection.Text = m_ClienteCollectionBE.GetXml();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Esempio n. 2
0
 private void button7_Click(object sender, EventArgs e)
 {
     try
     {
         ClienteBE wClienteBE = (ClienteBE)FwkCompression.UnzipZip_From_base64_object(textBox1.Text);
         textBox2.Text = wClienteBE.GetXml();
     }
     catch (System.FormatException)
     {
         MessageBox.Show("El origen debe ser en un string en b64 producto de haber utilizado la funcion FwkCompression.UnzipZip_From_base64(origen);");
     }
 }