Ejemplo n.º 1
0
 public void Reload()
 {
     ApplicationProfile.RepositoryName = RepositorySettings.SelectedKey;
     EnsureXCopy(ApplicationProfile.MasterSettingsPath, ApplicationProfile.RepositorySettingsPath);
     SystemProfile          = new SystemProfile(ProfileCache);
     BranchCheckoutSettings = new ParameterSettings(ProfileCache);
     BranchCheckoutSettings.Load(SystemProfile.BranchCheckoutSettings);
     BranchLocalSettings = new ParameterSettings(ProfileCache);
     BranchLocalSettings.Load(SystemProfile.BranchLocalSettings);
     BranchRemoteSettings = new ParameterSettings(ProfileCache);
     BranchRemoteSettings.Load(SystemProfile.BranchRemoteSettings);
     CommandSettings = new CommandSettings(ProfileCache);
     CommandSettings.Load(SystemProfile.CommandSettings);
     CommandSettings.Clear();
     CommentSettings = new ParameterSettings(ProfileCache);
     CommentSettings.Load(SystemProfile.CommentSettings);
     FileSpecSettings = new ParameterSettings(ProfileCache);
     FileSpecSettings.Load(SystemProfile.FileSpecSettings);
     HeadSettings = new ParameterSettings(ProfileCache);
     HeadSettings.Load(SystemProfile.HeadSettings);
     ShaSettings = new ParameterSettings(ProfileCache);
     ShaSettings.Load(SystemProfile.ShaSettings);
     StashSettings = new ParameterSettings(ProfileCache);
     StashSettings.Load(SystemProfile.StashSettings);
 }
Ejemplo n.º 2
0
 public ProfileManager()
 {
     ProfileCache       = new ProfileCache();
     ApplicationProfile = new ApplicationProfile(ProfileCache);
     if (!File.Exists(ApplicationProfile.SystemProfileXml))
     {
         if (Directory.Exists(ApplicationProfile.DataPath))
         {
             FileHelper.DeleteAll(ApplicationProfile.DataPath);
         }
     }
     EnsureXCopy(ApplicationProfile.MasterDataPath, ApplicationProfile.DataPath);
     SystemProfile      = new SystemProfile(ProfileCache);
     RepositorySettings = new RepositorySettings(ProfileCache);
     RepositorySettings.Load(SystemProfile.RepositorySettings);
     TemplateSettings = new TemplateParameterSettings(ProfileCache);
     TemplateSettings.Load(SystemProfile.TemplateSettings);
     Reload();
 }