public Animate() { InitializeComponent(); mSingleton = this; mProjects = new List <Project>(); mDocs = new List <Document>(); mAbout = new About(); mFTPOptions = new FTP_Options(); mBuildOptions = new BuildOptions(); SolutionExplorer explorer = SolutionExplorer.Singleton; Logger logger = Logger.singleton; explorer.Show(mDockPanel); logger.Show(mDockPanel); explorer.DockTo(mDockPanel, DockStyle.Right); logger.DockTo(mDockPanel, DockStyle.Bottom); mNewProj = new NewProject(); buttonBuild.Image = imageList.Images[0]; buttonRun.Image = imageList.Images[1]; buttonMinify.Image = imageList.Images[3]; buttonBrowserDiag.Image = imageList.Images[4]; //Event handlers explorer.ProjectSelected += new SolutionExplorer.projectSelected(OnProjectSelected); OnProjectSelected(null); // Open the general project settings - see if there are any projects already loaded try { // Example #2 // Read each line of the file into a string array. Each element // of the array is one line of the file. string[] lines = File.ReadAllLines(Application.StartupPath + "\\startup.options"); foreach (string projectLocation in lines) { OpenProject(projectLocation); } } catch { } }