/// <summary>
 ///     Adds a 'FormSettings' item with the specified value to the 'FormSettingsCollection'
 /// </summary>
 /// <param name='forValue'>
 ///     The 'FormSettings' to add.
 /// </param>
 /// <returns>
 ///     The index at which the new element was inserted.
 /// </returns>
 public int Add(FormSettings form)
 {
     if (Contains(form.FormName))
     {
         Remove(Get(form.FormName));
     }
     return(List.Add(form));
 }
        public void SetFormSettings(System.Windows.Forms.Form winform)
        {
            FormSettings form = new FormSettings(winform);

            if (Contains(form.FormName))
            {
                Remove(Get(form.FormName));
            }
            List.Add(form);
        }
Exemplo n.º 3
0
 public void SetFormSettings(System.Windows.Forms.Form winform)
 {
     FormSettings form = new FormSettings(winform);
     if(Contains(form.FormName))
     {
         Remove(Get(form.FormName));
     }
     List.Add(form);
 }
Exemplo n.º 4
0
 /// <summary>
 ///     Removes a specific item from the 'FormSettingsCollection'.
 /// </summary>
 /// <param name='forValue'>
 ///     The item to remove from the 'FormSettingsCollection'.
 /// </param>
 public void Remove(FormSettings forValue)
 {
     List.Remove(forValue);
 }
Exemplo n.º 5
0
 /// <summary>
 ///     Inserts an existing 'FormSettings' into the collection at the specified index.
 /// </summary>
 /// <param name='intIndex'>
 ///     The zero-based index where the new item should be inserted.
 /// </param>
 /// <param name='forValue'>
 ///     The item to insert.
 /// </param>
 public void Insert(int intIndex, FormSettings forValue)
 {
     List.Insert(intIndex, forValue);
 }
Exemplo n.º 6
0
 /// <summary>
 ///     Returns the index of a 'FormSettings' object in the collection.
 /// </summary>
 /// <param name='forValue'>
 ///     The 'FormSettings' object whose index will be retrieved.
 /// </param>
 /// <returns>
 ///     If found, the index of the value; otherwise, -1.
 /// </returns>
 public int IndexOf(FormSettings forValue)
 {
     return List.IndexOf(forValue);
 }
Exemplo n.º 7
0
 /// <summary>
 ///     Copies the 'FormSettingsCollection' values to a one-dimensional System.Array
 ///     instance starting at the specified array index.
 /// </summary>
 /// <param name='forArray'>
 ///     The one-dimensional System.Array that represents the copy destination.
 /// </param>
 /// <param name='intIndex'>
 ///     The index in the array where copying begins.
 /// </param>
 public void CopyTo(FormSettings[] forArray, int intIndex)
 {
     List.CopyTo(forArray, intIndex);
 }
Exemplo n.º 8
0
 /// <summary>
 ///     Gets a value indicating whether the 'FormSettingsCollection' contains the specified value.
 /// </summary>
 /// <param name='forValue'>
 ///     The item to locate.
 /// </param>
 /// <returns>
 ///     True if the item exists in the collection; false otherwise.
 /// </returns>
 public bool Contains(FormSettings forValue)
 {
     return List.Contains(forValue);
 }
Exemplo n.º 9
0
 /// <summary>
 ///     Copies the elements of an array at the end of this instance of 'FormSettingsCollection'.
 /// </summary>
 /// <param name='forValue'>
 ///     An array of 'FormSettings' objects to add to the collection.
 /// </param>
 public void AddRange(FormSettings[] forValue)
 {
     for (int intCounter = 0; (intCounter < forValue.Length); intCounter = (intCounter + 1))
     {
         this.Add(forValue[intCounter]);
     }
 }
Exemplo n.º 10
0
 /// <summary>
 ///     Adds a 'FormSettings' item with the specified value to the 'FormSettingsCollection'
 /// </summary>
 /// <param name='forValue'>
 ///     The 'FormSettings' to add.
 /// </param>
 /// <returns>
 ///     The index at which the new element was inserted.
 /// </returns>
 public int Add(FormSettings form)
 {
     if(Contains(form.FormName))
     {
         Remove(Get(form.FormName));
     }
     return List.Add(form);
 }
Exemplo n.º 11
0
 /// <summary>
 ///     Initializes a new instance of 'FormSettingsCollection' with an array of 'FormSettings' objects.
 /// </summary>
 /// <param name='forValue'>
 ///     An array of 'FormSettings' objects with which to initialize the collection
 /// </param>
 public FormSettingsCollection(FormSettings[] forValue)
 {
     this.AddRange(forValue);
 }
 /// <summary>
 ///     Removes a specific item from the 'FormSettingsCollection'.
 /// </summary>
 /// <param name='forValue'>
 ///     The item to remove from the 'FormSettingsCollection'.
 /// </param>
 public void Remove(FormSettings forValue)
 {
     List.Remove(forValue);
 }
 /// <summary>
 ///     Inserts an existing 'FormSettings' into the collection at the specified index.
 /// </summary>
 /// <param name='intIndex'>
 ///     The zero-based index where the new item should be inserted.
 /// </param>
 /// <param name='forValue'>
 ///     The item to insert.
 /// </param>
 public void Insert(int intIndex, FormSettings forValue)
 {
     List.Insert(intIndex, forValue);
 }
 /// <summary>
 ///     Returns the index of a 'FormSettings' object in the collection.
 /// </summary>
 /// <param name='forValue'>
 ///     The 'FormSettings' object whose index will be retrieved.
 /// </param>
 /// <returns>
 ///     If found, the index of the value; otherwise, -1.
 /// </returns>
 public int IndexOf(FormSettings forValue)
 {
     return(List.IndexOf(forValue));
 }
 /// <summary>
 ///     Gets a value indicating whether the 'FormSettingsCollection' contains the specified value.
 /// </summary>
 /// <param name='forValue'>
 ///     The item to locate.
 /// </param>
 /// <returns>
 ///     True if the item exists in the collection; false otherwise.
 /// </returns>
 public bool Contains(FormSettings forValue)
 {
     return(List.Contains(forValue));
 }