예제 #1
0
 public void ClearNodes()
 {
     lock (bubbleDictionary) {
         foreach (long oid in bubbleDictionary.Keys)
         {
             BubbleTextNode node = bubbleDictionary[oid];
             window.RemoveChild(node.Widget);
             node.Dispose();
         }
         bubbleDictionary.Clear();
     }
 }
예제 #2
0
 public void RemoveNode(long oid)
 {
     lock (bubbleDictionary) {
         if (!bubbleDictionary.ContainsKey(oid))
         {
             return;
         }
         BubbleTextNode node = bubbleDictionary[oid];
         window.RemoveChild(node.Widget);
         bubbleDictionary.Remove(oid);
         node.Dispose();
     }
 }