Exemplo n.º 1
0
        private void _menu_MI_Popup(object sender, EventArgs e)
        {
            _recentFiles_MI.MenuItems.Clear();

            foreach (RecentProject rp in ApplicationSettings.Instance.RecentProjects)
            {
                var mi = new RecentFilesMenuItem()
                {
                    Text     = rp.ProjectName,
                    FilePath = rp.FilePath
                };
                mi.Click += recentFileSelected;
                _recentFiles_MI.MenuItems.Add(mi);
            }
        }
Exemplo n.º 2
0
        private void _menu_MI_Popup(object sender, EventArgs e)
        {
            _recentFiles_MI.MenuItems.Clear();

            foreach (RecentProject rp in Controller.Settings.RecentProjects)
            {
                var mi = new RecentFilesMenuItem()
                {
                    Text = rp.ProjectName,
                    FilePath = rp.FilePath
                };
                mi.Click += recentFileSelected;
                _recentFiles_MI.MenuItems.Add(mi);
            }
        }