Moving source files into a separate folder

This commit is contained in:
Anton Kasyanov
2021-02-28 17:09:33 +02:00
parent cd5002abb3
commit 656c68065e
108 changed files with 68 additions and 82 deletions

View File

@@ -0,0 +1,46 @@
using System;
using System.Windows.Forms;
using EveOPreview.Services;
namespace EveOPreview.View
{
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;
}
}
}
}