Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            DAL.Source.Source_Setting Source_Setting = new DAL.Source.Source_Setting();
            Fill_Resturant(Source_Setting.Get_Setting());

            DAL.Source.Source_Facture facture = new DAL.Source.Source_Facture();
            Fill_Facture_Service_Kinds(facture.Get_Facture_Service_Kinds());

            DAL.Source.Source_FactureContainer factureContainer = new DAL.Source.Source_FactureContainer();
            factureContainer.Get_Ware_and_Quantity();

            DAL.Source.Source_Ware source_Ware = new DAL.Source.Source_Ware();
            var a = source_Ware.Get_Ware();

            DAL.Source.Source_BankPos bankPos = new DAL.Source.Source_BankPos();
            chkHasPOS.Checked = bankPos.Get_HasPos();

            DAL.Source.Source_TwoPersonCost twoPersonCost = new DAL.Source.Source_TwoPersonCost();
            txtTwoPersonCost.Text = twoPersonCost.get().ToString();


            GenericXMLSerializer <List <DAL.Source.Target_Ware> > genericXMLSerializer = new GenericXMLSerializer <List <DAL.Source.Target_Ware> >("Target_Ware");

            genericXMLSerializer.Serialize(a);


            dataGridView1.DataSource = genericXMLSerializer.Deserialize();
        }
Exemplo n.º 2
0
        public ConnectionString Get()

        {
            GenericXMLSerializer <ConnectionString> genericXMLSerializer = new GenericXMLSerializer <ConnectionString>(FileName, Directory);

            return(genericXMLSerializer.Deserialize());
        }