Files
eveo/Eve-O-Preview/Preview/PreviewOverlay.cs
Anton Kasyanov aaf859a1e3 Preview update
2016-05-14 14:05:47 +03:00

37 lines
770 B
C#

using System;
using System.Windows.Forms;
namespace EveOPreview
{
public partial class PreviewOverlay : Form
{
private readonly Action<object, MouseEventArgs> _areaClickAction;
public PreviewOverlay(Action<object, MouseEventArgs> areaClickAction)
{
this._areaClickAction = areaClickAction;
InitializeComponent();
}
private void OverlayArea_Click(object sender, MouseEventArgs e)
{
this._areaClickAction(sender, e);
}
public void SetOverlayLabel(string label)
{
this.OverlayLabel.Text = label;
}
protected override CreateParams CreateParams
{
get
{
var Params = base.CreateParams;
Params.ExStyle |= (int)DwmApiNativeMethods.WS_EX_TOOLWINDOW;
return Params;
}
}
}
}