Exemplo n.º 1
0
 public void AddRoster(Roster roster)
 {
     try
     {
         if (roster != null && this.FindRosterItem(roster.Uid) == null)
         {
             TreeNodeRoster node = new TreeNodeRoster(roster);
             node.DataContext = roster.Uid;
             this.RosterList.Items.Add(node);
         }
     }
     catch (System.Exception e)
     {
         System.Console.WriteLine(e.ToString());
     }
 }
Exemplo n.º 2
0
 public void AddRoster(Roster roster)
 {
     try
     {
         if (roster != null && this.FindRosterItem(roster.Uid) == null)
         {
             TreeNodeRoster node = new TreeNodeRoster(roster);
             node.DataContext = roster.Uid;
             this.RosterList.Items.Add(node);
         }
     }
     catch (System.Exception e)
     {
         System.Console.WriteLine(e.ToString());
     }
 }