Exemplo n.º 1
0
 void CategoryListCtrl_CategoryEdited(object sender, CategoryEditedEventArgs e)
 {
     //
 }
Exemplo n.º 2
0
 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();
 }