Example #1
0
        private void splashScreenTimer_Tick(object sender, System.EventArgs e)
        {
            splashScreenTimer.Stop();
            splashScreen.Close();
            splashScreen = null;

            this.RunWizardIfNecessary();
        }
Example #2
0
        public MainWindow()
        {
            splashScreen = new SplashScreen();
            splashScreen.Show();

            mdiWindowList = new ArrayList();

            try
            {
                RegistryHelper helper = RegistryHelper.getInstance();
                String databaseFolder = helper.GetFunctionDatabaseFolderPath();
                InterceptedFunctionDB.GetInstance("functions.xml").LoadDatabase(databaseFolder, "functions.xml");
                FaultFunctionDB.GetInstance().LoadDatabase(databaseFolder);
            }
            catch(Exception e)
            {
                String message = "There was an error in the function database:\n" + e.Message;
                message += "\n\nThe application will now exit.";

                MessageBox.Show(this, message, "Holodeck Error");
                System.Environment.Exit(-1);
            }

            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            splashScreenTimer.Start();
            viewFullModeMenuItem.Checked = true;
            this.SavedProjectFileName = "";
            mainHelpProvider.HelpNamespace = RegistryHelper.getInstance().GetInstallationPath() + "\\HolodeckEE.chm";
        }