Resizing thumbnail too big or too small results in an immediate program crash

This commit is contained in:
Anton Kasyanov
2016-06-05 16:15:49 +03:00
parent bb4a8f5da6
commit daa18558eb
8 changed files with 45 additions and 48 deletions

View File

@@ -115,6 +115,12 @@ namespace EveOPreview.UI
return (this.Id == handle) || (this.Handle == handle) || (this._overlay.Handle == handle);
}
public void SetSizeLimitations(Size minimumSize, Size maximumSize)
{
this.MinimumSize = minimumSize;
this.MaximumSize = maximumSize;
}
public void SetOpacity(double opacity)
{
this.Opacity = opacity;