public void Remove(MRUItemConfigurationElement item)
 {
     if (BaseIndexOf(item) >= 0)
     {
         BaseRemove(item.Name);
     }
 }
Ejemplo n.º 2
0
        internal void DeleteByName(string name)
        {
            MRUItemConfigurationElement configurationElement = this.ItemByName(name);

            if (configurationElement != null)
            {
                this.Remove(name);
            }
        }
Ejemplo n.º 3
0
        internal void EditByName(string oldName, string newName)
        {
            MRUItemConfigurationElement configurationElement = this.ItemByName(oldName);

            if (configurationElement != null)
            {
                this[oldName].Name = newName;
            }
        }
Ejemplo n.º 4
0
        private static void EditMRUItemConfigurationElement(MRUItemConfigurationElementCollection configurationElementCollection, string oldName, string newName)
        {
            MRUItemConfigurationElement configurationElement = configurationElementCollection.ItemByName(oldName);

            if (configurationElement != null)
            {
                configurationElementCollection[oldName].Name = newName;
            }
        }
Ejemplo n.º 5
0
        internal void AddByName(string name)
        {
            MRUItemConfigurationElement configurationElement = this.ItemByName(name);

            if (configurationElement == null)
            {
                this.Add(new MRUItemConfigurationElement(name));
            }
        }
Ejemplo n.º 6
0
        private static void DeleteMRUItemConfigurationElement(MRUItemConfigurationElementCollection configurationElementCollection, string name)
        {
            MRUItemConfigurationElement configurationElement = configurationElementCollection.ItemByName(name);

            if (configurationElement != null)
            {
                configurationElementCollection.Remove(name);
            }
        }
Ejemplo n.º 7
0
        private static void AddMRUItemConfigurationElement(MRUItemConfigurationElementCollection configurationElementCollection, string name)
        {
            MRUItemConfigurationElement configurationElement = configurationElementCollection.ItemByName(name);

            if (configurationElement == null)
            {
                configurationElementCollection.Add(new MRUItemConfigurationElement(name));
            }
        }
 public void Add(MRUItemConfigurationElement item)
 {
     BaseAdd(item);
 }
 public int IndexOf(MRUItemConfigurationElement item)
 {
     return(BaseIndexOf(item));
 }
 public void Add(MRUItemConfigurationElement item)
 {
     BaseAdd(item);
 }
 public void Remove(MRUItemConfigurationElement item)
 {
     if (BaseIndexOf(item) >= 0)
         BaseRemove(item.Name);
 }
 public int IndexOf(MRUItemConfigurationElement item)
 {
     return BaseIndexOf(item);
 }