public bool SaveCategories(string filename) { try { cats.WriteXml(filename); return(true); } catch { return(false); } }