Example #1
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="type">the type of the change</param>
 /// <param name="changedIndex">index of where the change occur</param>
 /// <param name="oldRecord">the old item in the list</param>
 /// <param name="newRecord">the new item in the list</param>
 public TranslationsGroupsListChangedEventArgs
     (ListChangedType type, int changedIndex, TranslationsGroup oldRecord, TranslationsGroup newRecord)
 {
     OperationType = type;
     ChangedIndex  = changedIndex;
     OldRecord     = oldRecord;
     NewRecord     = newRecord;
 }
Example #2
0
 /// <summary>
 /// get the index of the given item
 /// </summary>
 /// <param name="item">the translation Group</param>
 /// <returns></returns>
 public int IndexOf(TranslationsGroup item)
 => TranslationsProvider.IndexOf(item);
Example #3
0
 /// <summary>
 /// update the old TranslationGroup name with the new name
 /// </summary>
 /// <param name="oldTranslationGroup">the old translation Croup name</param>
 /// <param name="newTranslationGroup">the new translation Group</param>
 /// <returns>the updated TranslationGroup</returns>
 public TranslationsGroup Update(TranslationsGroup oldTranslationGroup, TranslationsGroup newTranslationGroup)
 => TranslationsProvider.Update(oldTranslationGroup, newTranslationGroup);
Example #4
0
 /// <summary>
 /// Remove the translations Group from the list
 /// </summary>
 /// <param name="item">translations group to be removed</param>
 /// <returns>true if the item deleted, false if not</returns>
 /// <exception cref="TranslationsGroupNotExistException">if the translation group not exist</exception>
 public bool Remove(TranslationsGroup item)
 => Remove(item.Name);
Example #5
0
 /// <summary>
 /// Add the translations group to the list
 /// </summary>
 /// <param name="item">translations group to be added</param>
 /// <exception cref="TranslationsGroupAlreadyExistException">if the item Already exist in the list</exception>
 public TranslationsGroup Add(TranslationsGroup item)
 => TranslationsProvider.Add(item);
Example #6
0
 /// <summary>
 /// determine whether the element exist in the list
 /// </summary>
 /// <param name="item">the TranslationsGroup to look for</param>
 /// <returns>true if exist, false if not </returns>
 public bool Contains(TranslationsGroup item)
 => TranslationsProvider.Contains(item);