예제 #1
0
 /// <summary>
 /// Raised when a recent item is removed from list.
 /// This is can be done by removing it explicitely or when the maximum items in recent
 /// list was reached and an old item must be removed.
 /// </summary>
 private void RecentItems_ItemRemoved(object sender, RecentItemActionEventArgs e)
 {
     this.FileToolStripMenuItem.DropDownItems.Remove((ToolStripItem)e.Item.MenuItem);
     this.RecentItemsToolStripSeparator.Visible = this.recentItems.Count > 0;
 }
예제 #2
0
 private void RecentItems_ItemPushed(object sender, RecentItemActionEventArgs e)
 {
     this.RecentItemAdd(e.Item);
 }