/// <summary> /// Setup the Image Getters /// </summary> public void SetupImageGetters() { tlcWebVersion.ImageGetter = delegate(object rowObject) { if (rowObject.GetType() != typeof(ModCategory)) { IMod modMod = (IMod)rowObject; if (modMod != null) { if (modMod.UpdateWarningEnabled && (!modMod.IsMatchingVersion())) { return(new Bitmap(Properties.Resources.update_warning, 16, 16)); } else if ((!modMod.IsMatchingVersion()) && (!Settings.HideModUpdateWarningIcon)) { return(new Bitmap(Properties.Resources.update_warning_disabled, 16, 16)); } } } else { int intCategoryId = ((IModCategory)rowObject).Id; if (GetOutdatedModList(intCategoryId).Count > 0) { return(new Bitmap(Properties.Resources.update_warning, 16, 16)); } } return(null); }; tlcModName.ImageGetter = delegate(object rowObject) { if (rowObject.GetType() == typeof(ModCategory)) { return(new Bitmap(CreateBitmapImage(GetCategoryModCount((IModCategory)rowObject).ToString(), Properties.Resources.category_folder, 14, 2, 4, 1, 5), 13, 15)); } else { return(new Bitmap(!m_rolActiveMods.Contains((IMod)rowObject) ? Properties.Resources.dialog_cancel_4_16 : Properties.Resources.dialog_ok_4_16, 12, 12)); } }; tlcInstallDate.ImageGetter = delegate(object rowObject) { if (rowObject.GetType() == typeof(ModCategory)) { if (((ModCategory)rowObject).NewMods > 0) { return(new Bitmap(CreateBitmapImage(((ModCategory)rowObject).NewMods.ToString(), Properties.Resources.AddFile_48x48, 16, 4, 4, -2, -1), 16, 16)); } } return(null); }; tlcEndorsement.ImageGetter = delegate(object rowObject) { if (rowObject.GetType() != typeof(ModCategory)) { IMod modMod = (IMod)rowObject; if (modMod != null) { if (modMod.IsEndorsed == true) { return(new Bitmap(Properties.Resources.thumb_up, 16, 16)); } else if (modMod.IsEndorsed == false) { return(new Bitmap(Properties.Resources.thumb_no, 16, 16)); } } } return(null); }; }