mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 05:23:24 -07:00
Moving back to trunk!
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1602 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
ad265b2c54
commit
8d458998a1
332 changed files with 17647 additions and 9466 deletions
|
@ -21,12 +21,8 @@
|
|||
using System;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using Greenshot.Configuration;
|
||||
using Greenshot.Drawing.Fields;
|
||||
using Greenshot.Helpers;
|
||||
using Greenshot.Plugin.Drawing;
|
||||
|
||||
namespace Greenshot.Drawing {
|
||||
|
@ -104,5 +100,17 @@ namespace Greenshot.Drawing {
|
|||
graphics.DrawIcon(icon, Bounds);
|
||||
}
|
||||
}
|
||||
|
||||
public override void AddContextMenuItems(ContextMenuStrip menu) {
|
||||
base.AddContextMenuItems(menu);
|
||||
ToolStripMenuItem resetItem = new ToolStripMenuItem("Reset size");
|
||||
resetItem.Click += delegate {
|
||||
this.Invalidate();
|
||||
Width = icon.Size.Width;
|
||||
Height = icon.Size.Height;
|
||||
this.Invalidate();
|
||||
};
|
||||
menu.Items.Add(resetItem);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue