Switch to MVP pattern

This commit is contained in:
Anton Kasyanov
2016-05-22 18:37:04 +03:00
parent 5e276b7a98
commit 362fd0b8d4
41 changed files with 2060 additions and 1265 deletions

View File

@@ -0,0 +1,34 @@
using System;
using System.Drawing;
namespace EveOPreview.Thumbnails
{
public interface IThumbnail
{
IntPtr Id { get; }
bool IsZoomEnabled { get; set; }
bool IsPreviewEnabled { get; set; }
bool IsOverlayEnabled { get; set; }
bool IsPreviewHandle(IntPtr handle);
void ShowThumbnail();
void HideThumbnail();
void CloseThumbnail();
void RegisterShortcut(string shortcut);
// TODO Turn this into a property
void SetLabel(string label);
string GetLabel();
void SetLocation(Point location);
Point GetLocation();
void SetOpacity(double opacity);
void SetTopMost(bool topmost);
void SetWindowFrames(bool enable);
void SetSize(Size size);
}
}