示例#1
0
        private void dataGridView1_CellValueChanged(object sender, DataGridViewCellEventArgs e)
        {
            GenericXMLSerializer <List <DAL.Source.Target_Ware> > genericXMLSerializer = new GenericXMLSerializer <List <DAL.Source.Target_Ware> >("Target_Ware");
            List <DAL.Source.Target_Ware> b = dataGridView1.DataSource as List <DAL.Source.Target_Ware>;

            genericXMLSerializer.Serialize(b);
        }
示例#2
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();
        }
示例#3
0
        public ConnectionString Get()

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

            return(genericXMLSerializer.Deserialize());
        }
示例#4
0
        public bool  Set(ConnectionString obj)
        {
            GenericXMLSerializer <ConnectionString> genericXMLSerializer = new GenericXMLSerializer <ConnectionString>(FileName, Directory);

            genericXMLSerializer.Serialize(obj);


            return(true);
        }