コード例 #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()
        {
            bool booChanged = false;

            if (VirtualDirectoriesControlVM.ValidateSettings())
            {
                booChanged      = VirtualDirectoriesControlVM.SaveSettings();
                IsSetupComplete = true;
            }
            return(booChanged);
        }
コード例 #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 VirtualDirectoriesSetupVM(IEnvironmentInfo p_eifEnvironmentInfo, IGameModeDescriptor p_gmdGameModeInfo, IVirtualModActivator p_ivaVirtualActivator)
 {
     EnvironmentInfo             = p_eifEnvironmentInfo;
     GameModeDescriptor          = p_gmdGameModeInfo;
     VirtualDirectoriesControlVM = new VirtualDirectoriesControlVM(p_eifEnvironmentInfo, p_gmdGameModeInfo, p_ivaVirtualActivator);
 }