/// <summary> /// Opens a 'ViewMod' window to view a mod. /// </summary> public ModManager_ViewMod(ModManager_ViewMod_ViewText modManager_ViewMod_ViewText, AppSettings appSettings) { //xaml initalization InitializeComponent(); this.modManager_ViewMod_ViewText = modManager_ViewMod_ViewText; this.appSettings = appSettings; //create a temporary mod object with some default values mod = new Mod("Mod Name", "0", "Mod Author", new List <string>(), "None"); }
/// <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(); } }