//MenuItem gets removed if Shift is pressed private void RestoreOrRemoveMenuItem(object sender, EventArgs e) { ToolStripMenuItem mnu = (ToolStripMenuItem)sender; Snapshot ss = (Snapshot)mnu.Tag; if (Control.ModifierKeys == Keys.Shift) { m_snapshots.Remove(ss); trayMenu.Items.Remove(mnu); } else { ss.Restore(sender, e); } }
private void justNowToolStripMenuItem_Click(object sender, EventArgs e) { m_menuShownSnapshot.Restore(null, EventArgs.Empty); }