CSPspEmu.Gui.Winforms.PspDisplayForm.UpdateRecentList C# (CSharp) Method

UpdateRecentList() private method

private UpdateRecentList ( ) : void
return void
        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);
                }
            }));
        }
PspDisplayForm