public void Remove(MRUItemConfigurationElement item)
 {
     if (BaseIndexOf(item) >= 0)
     {
         BaseRemove(item.Name);
     }
 }
コード例 #2
0
        internal void DeleteByName(string name)
        {
            MRUItemConfigurationElement configurationElement = this.ItemByName(name);

            if (configurationElement != null)
            {
                this.Remove(name);
            }
        }
コード例 #3
0
        internal void EditByName(string oldName, string newName)
        {
            MRUItemConfigurationElement configurationElement = this.ItemByName(oldName);

            if (configurationElement != null)
            {
                this[oldName].Name = newName;
            }
        }
コード例 #4
0
        private static void EditMRUItemConfigurationElement(MRUItemConfigurationElementCollection configurationElementCollection, string oldName, string newName)
        {
            MRUItemConfigurationElement configurationElement = configurationElementCollection.ItemByName(oldName);

            if (configurationElement != null)
            {
                configurationElementCollection[oldName].Name = newName;
            }
        }
コード例 #5
0
        internal void AddByName(string name)
        {
            MRUItemConfigurationElement configurationElement = this.ItemByName(name);

            if (configurationElement == null)
            {
                this.Add(new MRUItemConfigurationElement(name));
            }
        }
コード例 #6
0
        private static void DeleteMRUItemConfigurationElement(MRUItemConfigurationElementCollection configurationElementCollection, string name)
        {
            MRUItemConfigurationElement configurationElement = configurationElementCollection.ItemByName(name);

            if (configurationElement != null)
            {
                configurationElementCollection.Remove(name);
            }
        }
コード例 #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);
 }