Working on Thumbnail List Update notifications

This commit is contained in:
Anton Kasyanov
2018-02-19 20:33:27 +02:00
parent 8110b5ce7e
commit b8d7c71f06
26 changed files with 129 additions and 59 deletions

View File

@@ -0,0 +1,46 @@
using System;
using System.Windows.Forms;
using EveOPreview.Services;
namespace EveOPreview.UI
{
public partial class ThumbnailOverlay : Form
{
#region Private fields
private readonly Action<object, MouseEventArgs> _areaClickAction;
#endregion
public ThumbnailOverlay(Form owner, Action<object, MouseEventArgs> areaClickAction)
{
this.Owner = owner;
this._areaClickAction = areaClickAction;
InitializeComponent();
}
private void OverlayArea_Click(object sender, MouseEventArgs e)
{
this._areaClickAction(this, e);
}
public void SetOverlayLabel(string label)
{
this.OverlayLabel.Text = label;
}
public void EnableOverlayLabel(bool enable)
{
this.OverlayLabel.Visible = enable;
}
protected override CreateParams CreateParams
{
get
{
var Params = base.CreateParams;
Params.ExStyle |= (int)InteropConstants.WS_EX_TOOLWINDOW;
return Params;
}
}
}
}