Exemplo n.º 1
0
        /// <summary>
        /// Opens the specified project.
        /// </summary>
        /// <param name="project">The project to open.</param>
        private void OpenProject(Project project)
        {
            CloseStartPage();
            CloseProject();

            OpenedProject = project;
            var pl = project.Platform;

            AddMenu(pl.Gui);
            AddToolbar(pl.Gui);

            pl.Gui.OpenPads();

            ShowEditorFor(project.MainItem);

            Text = System.IO.Path.GetFileNameWithoutExtension(project.Filename) + " - Messy Lab";

            // Notofy the RecentManager that the project has been opened.
            RecentManager.Notify(project.Path);
        }
Exemplo n.º 2
0
 public MainForm()
 {
     InitializeComponents();
     RecentManager = new RecentManager();
 }
Exemplo n.º 3
0
 private void clearToolStripMenuItem_Click(object sender, EventArgs e)
 {
     RecentManager.Clear();
 }