Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 29th, 2012  |  syntax: C#  |  size: 0.54 KB  |  hits: 24  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.         public void ClearHistoryFull()
  2.         {
  3.  
  4.             this.Host.Actions.AddChatText("History Triggered", 5);
  5.            
  6.             IEnumerable<XElement> removeAll =
  7.                 from elem in document.Descendants("logreport")
  8.                  select elem;
  9.  
  10.             foreach (XElement s in removeAll)
  11.             {
  12.                 this.Host.Actions.AddChatText(s.ToString(), 5);
  13.                 s.Remove();
  14.             }
  15.             SerializeXml();
  16.             loadXElementXML();
  17.             PopulateHistory();
  18.         }