Exemple #1
0
 /// <summary>
 /// Save the changes that the setup has performed.
 /// </summary>
 /// <returns><c>true</c> if the changes were saved;
 /// <c>false</c> otherwise.</returns>
 public bool Save()
 {
     if (SetupDirectoriesControlVM.ValidateSettings())
     {
         SetupDirectoriesControlVM.SaveSettings(false);
         EnvironmentInfo.Settings.Save();
         IsSetupComplete = true;
         return(true);
     }
     return(false);
 }
Exemple #2
0
 /// <summary>
 /// A simple constructor that initializes the object with the given values.
 /// </summary>
 /// <param name="p_eifEnvironmentInfo">The application's envrionment info.</param>
 /// <param name="p_gmdGameModeInfo">The descriptor for the game mode being set up.</param>
 public SetupBaseVM(IEnvironmentInfo p_eifEnvironmentInfo, IGameModeDescriptor p_gmdGameModeInfo)
 {
     EnvironmentInfo           = p_eifEnvironmentInfo;
     GameModeDescriptor        = p_gmdGameModeInfo;
     SetupDirectoriesControlVM = new SetupDirectoriesControlVM(p_eifEnvironmentInfo, p_gmdGameModeInfo, true);
 }