Allow to minimize the client by Crtl+Click on its thumbnail

This commit is contained in:
Anton Kasyanov
2017-06-17 18:45:15 +03:00
parent 1fe2023b51
commit 5277a52bae
4 changed files with 134 additions and 95 deletions

View File

@@ -101,6 +101,8 @@ namespace EveOPreview.UI
public Action<IntPtr> ThumbnailActivated { get; set; }
public Action<IntPtr> ThumbnailDeactivated { get; set; }
public new void Show()
{
base.Show();
@@ -435,7 +437,14 @@ namespace EveOPreview.UI
{
if (e.Button == MouseButtons.Left)
{
this.ThumbnailActivated?.Invoke(this.Id);
if (Control.ModifierKeys == Keys.Control)
{
this.ThumbnailDeactivated?.Invoke(this.Id);
}
else
{
this.ThumbnailActivated?.Invoke(this.Id);
}
}
if ((e.Button == MouseButtons.Right) || (e.Button == (MouseButtons.Left | MouseButtons.Right)))