public RecentFiles(ToolStripMenuItem Menu, int Position, int MaxMenuItems, bool ShowItem, RecentFileSelectedEventHandler onClick)
        {
            mFiles = Settings.Default.RecentFiles;
            if (mFiles == null)
                mFiles = new StringCollection();

            mMenu = Menu;
            mPosition = Position;
            mMaxMenuItems = MaxMenuItems;
            mOnClick = onClick;
            mShowRecentFiles = ShowItem;

            if (mShowRecentFiles)
            {
                //Visualizza l'elenco dei file recenti.
                this.DrawMenu();
            }
        }
 public RecentFiles(ToolStripMenuItem Menu, int Position, RecentFileSelectedEventHandler onClick)
     : this(Menu, Position, MAX_MENU_ITEMS, onClick)
 {
 }
 public RecentFiles(ToolStripMenuItem Menu, int Position, int MaxMenuItems, RecentFileSelectedEventHandler onClick)
     : this(Menu, Position, MaxMenuItems, true, onClick)
 {
 }
 public RecentFiles(ToolStripMenuItem Menu, RecentFileSelectedEventHandler onClick)
     : this(Menu, Menu.DropDownItems.Count, MAX_MENU_ITEMS, onClick)
 {
 }