Пример #1
0
        public async void SaveOrderList(List <SampleItem> listItem)
        {
            SampleItems sampleItems = new SampleItems();

            sampleItems.List = listItem;
            string result = sampleItems.Organizate();
            await result.Save(fileName);
        }
Пример #2
0
        public async void SaveOrder(SampleItem sampleItem)
        {
            string content = await fileName.GetContent();

            SampleItems sampleItems = new SampleItems(content);

            sampleItems.List.Add(sampleItem);
            string result = sampleItems.Organizate();
            await result.Save(fileName);
        }