Made resize work, cleaned up code so it should be easier to port the changes to 2.x

This commit is contained in:
RKrom 2014-06-01 20:25:52 +02:00
commit aced477cef
8 changed files with 446 additions and 474 deletions

View file

@ -509,7 +509,7 @@ namespace Greenshot.Drawing {
bool canReset = false;
foreach (var drawableContainer in this) {
var container = (DrawableContainer) drawableContainer;
if (container.hasDefaultSize) {
if (container.HasDefaultSize) {
canReset = true;
}
}
@ -519,7 +519,7 @@ namespace Greenshot.Drawing {
item.Click += delegate {
foreach (var drawableContainer in this) {
var container = (DrawableContainer) drawableContainer;
if (!container.hasDefaultSize) {
if (!container.HasDefaultSize) {
continue;
}
Size defaultSize = container.DefaultSize;
@ -538,7 +538,7 @@ namespace Greenshot.Drawing {
bool hasMenu = false;
foreach (var drawableContainer in this) {
var container = (DrawableContainer) drawableContainer;
if (!container.hasContextMenu) {
if (!container.HasContextMenu) {
continue;
}
hasMenu = true;