private void UpdateRecentList()
{
this.DoInvoke(new Action(() =>
{
try
{
var Items = FileOpenRecentMenu.DropDownItems;
Items.Clear();
foreach (var RecentFile in StoredConfig.RecentFiles)
{
var Item = new ToolStripMenuItem()
{
Text = RecentFile,
ShowShortcutKeys = true,
ShortcutKeys = ((Keys)((Keys.Control | (Keys.D1 + Items.Count)))),
};
Item.Click += Recent_Click;
Items.Add(Item);
}
}
catch (Exception Exception)
{
Console.Error.WriteLine(Exception);
}
}));
}