Beispiel #1
0
        public void UpdateKey(TKey oldKey, TKey newKey)
        {
            var item = FSortedList[oldKey];

            FSortedList.Remove(oldKey);
            FSortedList.Add(newKey, item);

            OnOrderChanged();
        }
 public void Remove(int key)
 {
     if (list.Count > key && key >= 0)
     {
         list.Remove(key);
     }
 }
Beispiel #3
0
 public void AddColor(float x, float r, float g, float b, float a)
 {
     if (samples.ContainsKey(x))
     {
         samples.Remove(x);
     }
     else
     {
         x_min = Math.Min(x_min, x);
         x_max = Math.Max(x_max, x);
     }
     samples.Add(x, new Vector4(r, g, b, a));
 }
Beispiel #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="child"></param>
 public void RemoveChild(Node child)
 {
     if (child == null)
     {
         return;
     }
     if (child.NameType == nBrowser.NodeType.Browser || child.NameType == nBrowser.NodeType.Gateway)
     {
         Children.Remove(child.Id);
         ChildrenKeys.Remove(child.Id);
     }
     else if (child.NameType == NodeType.DefaultBrowser)
     {
         DefaultChildren.Remove(child.Id);
         DefaultChildrenKeys.Remove(child.Id);
     }
 }
 /// <summary>
 /// Removes an integer value from the collection.
 /// </summary>
 /// <param name="nValue">The integer value to remove.</param>
 public void Remove(int nValue)
 {
     _list.Remove(nValue);
 }