Bloom.Program.StartUpShellBasedOnMostRecentUsedIfPossible C# (CSharp) Method

StartUpShellBasedOnMostRecentUsedIfPossible() private static method

private static StartUpShellBasedOnMostRecentUsedIfPossible ( ) : void
return void
        private static void StartUpShellBasedOnMostRecentUsedIfPossible()
        {
            var path = Settings.Default.MruProjects.Latest;

            if (!string.IsNullOrEmpty(path))
            {
                //CollectionChoosing.OpenCreateCloneControl.CheckForBeingInDropboxFolder(path);
                while (CollectionChoosing.OpenCreateCloneControl.IsInvalidCollectionToEdit(path))
                {
                    // Somehow...from a previous version?...we have an invalid file in our MRU list.
                    Settings.Default.MruProjects.RemovePath(path);
                    path = Settings.Default.MruProjects.Latest;
                }
            }

            if (path == null || !OpenProjectWindow(path))
            {
                //since the message pump hasn't started yet, show the UI for choosing when it is //review june 2013... is it still not going, with the current splash screen?
                Application.Idle += ChooseAnotherProject;
            }
        }