Ejemplo n.º 1
0
        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();
            }
        }
Ejemplo n.º 2
0
 public RecentFiles(ToolStripMenuItem Menu, int Position, RecentFileSelectedEventHandler onClick)
     : this(Menu, Position, MAX_MENU_ITEMS, onClick)
 {
 }
Ejemplo n.º 3
0
 public RecentFiles(ToolStripMenuItem Menu, int Position, int MaxMenuItems, RecentFileSelectedEventHandler onClick)
     : this(Menu, Position, MaxMenuItems, true, onClick)
 {
 }
Ejemplo n.º 4
0
 public RecentFiles(ToolStripMenuItem Menu, RecentFileSelectedEventHandler onClick)
     : this(Menu, Menu.DropDownItems.Count, MAX_MENU_ITEMS, onClick)
 {
 }