Thumbnail management code cleanup

This commit is contained in:
Anton Kasyanov
2016-05-30 23:13:39 +03:00
parent 362fd0b8d4
commit 244a193e99
28 changed files with 1207 additions and 1115 deletions

View File

@@ -2,9 +2,6 @@ using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using System.Globalization;
using EveOPreview.Configuration;
using EveOPreview.Thumbnails;
namespace EveOPreview.UI
{
@@ -312,7 +309,7 @@ namespace EveOPreview.UI
public event Action<ViewCloseRequest> FormCloseRequested;
public event Action ApplicationSettingsChanged;
public event Action ThumbnailsSizeChanged;
public event Action<IntPtr, Boolean> ThumbnailStateChanged;
public event Action<IntPtr> ThumbnailStateChanged;
public event Action ForumUrlLinkActivated;
#region UI events
@@ -343,8 +340,9 @@ namespace EveOPreview.UI
{
return;
}
selectedItem.IsDisabled = (e.NewValue == CheckState.Checked);
this.ThumbnailStateChanged?.Invoke(selectedItem.Id, e.NewValue == CheckState.Checked);
this.ThumbnailStateChanged?.Invoke(selectedItem.Id);
}
private void ForumLinkLabelClicked_Handler(object sender, LinkLabelLinkClickedEventArgs e)