/// <summary> /// Adds an application list to the list. /// Takes care of adding a new icon. /// </summary> private void AddAppToList(ApplicationList appList) { try { imlLists.Images.Add(appList.GetIcon()); } catch (ArgumentException) { // Do not fault on invalid icons } lists.Add(appList); }
/// <summary> /// Updates the icon of an application list. /// </summary> private void UpdateAppList(ApplicationList list) { imlLists.Images[this.lists.IndexOf(list)] = list.GetIcon(); olvLists.RefreshObject(list); }