Beispiel #1
0
        public void Save() {
            XMLSerializer.Serialize<List<CategoryData>>(Path.Combine(DataDir, categoryfile), categorylist);

            var lists = manager.ToList();
            foreach (var item in lists) {
                if (item.Value.IsDirty) {
                    var name = getCategoryName(item.Key);
                    XMLSerializer.Serialize<List<Data>>(Path.Combine(DataDir, name + Category.Ext), item.Value.Datas);
                }
            }
        }
Beispiel #2
0
 public void SaveSnippetList()
 {
     XMLSerializer.Serialize <List <string> >(SnippetListPath, SnippetList);
 }