Special donate icon in special times

This commit is contained in:
JKlingen 2014-12-15 23:26:10 +01:00
parent 5ae6c5dd0a
commit ccd809d4ed
2 changed files with 25 additions and 0 deletions

View file

@ -746,6 +746,13 @@ namespace Greenshot {
} else {
contextmenu_capturefullscreen.Click += CaptureFullScreenToolStripMenuItemClick;
}
var now = DateTime.Now;
if ((now.Month == 12 && now.Day > 19 && now.Day < 27) || // christmas
(now.Month == 3 && now.Day > 13 && now.Day < 21)) { // birthday
var resources = new ComponentResourceManager(typeof(MainForm));
contextmenu_donate.Image = (Image)resources.GetObject("contextmenu_present.Image");
}
}
void ContextMenuClosing(object sender, EventArgs e) {