Пример #1
0
        private void Btn_deserialize_Click_1(object sender, EventArgs e)
        {
            Serializator <NewShop> serializator = new Serializator <NewShop>(new JsonSerializator(typeof(NewShop)));

            myshop2 = serializator.Deserialize(jsonPath);
            //myshop.StartTimer();
            txt_ReadOrders.Text = "Інформацію зчитано";
        }
Пример #2
0
        private void Btn_serialize_Click(object sender, EventArgs e)
        {
            Serializator <NewShop> serializator = new Serializator <NewShop>(new JsonSerializator(typeof(NewShop)));

            serializator.Serialize(myshop2, jsonPath);
            //ReaderFromFile.WriteShop(shopPath, myshop);
            //ReaderFromFile.WriteOrder(orderPath, myshop.orders);
            txt_ReadOrders.Text = "Інформацію збережено";
        }