void CategoryListCtrl_CategoryEdited(object sender, CategoryEditedEventArgs e) { // }
void catLstCtrl_CategoryEdited(object sender, CategoryEditedEventArgs e) { try { var categoryQuery = from category in this.gl_xDoc.Root.Element("CategoryRoot").Descendants("Category") where category.Attribute("Id").Value.ToString() == e.CategoryId select category; foreach (var category in categoryQuery) { category.Attribute("CategoryName").Value = e.CategoryName; } } catch { } this.CommitChanges(); }