コード例 #1
0
        /// <summary>
        /// Initalizes the main script objects and windows
        /// </summary>
        private void InitalizeApplication()
        {
            //initalize our objects
            appSettings = new AppSettings();
            modManager  = new ModManager(appSettings, this);

            //get the mods from the current game version folder
            modManager.GetModsFromFolder();

            //create our window objects
            modManager_ViewMod_ViewText = new ModManager_ViewMod_ViewText();
            modManager_ViewMod          = new ModManager_ViewMod(modManager_ViewMod_ViewText, appSettings);
            setupWizard_Window          = new SetupWizard_Window(appSettings, this, modManager);

            //we finished starting up now, so lets set this to false
            startingUp = false;

            //check if the currently selected game that was selected is valid, if it isn't then pop open the setup wizzard
            if (appSettings.IsGameSetupAndValid() == false)
            {
                InitalizeSetupWizard();
            }
        }