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); } } }
public void SaveSnippetList() { XMLSerializer.Serialize <List <string> >(SnippetListPath, SnippetList); }