- Timestamp:
- 03/26/12 20:59:47 (13 years ago)
- Location:
- branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/CloudManagerClient.cs
r7655 r7663 214 214 215 215 public void PersistSubscriptionsToUserConfig() { 216 StringCollection strCol = new StringCollection(); 216 Settings.Default.Upgrade(); 217 StringCollection strCol = Settings.Default.AzureSubscriptions; 218 strCol.Clear(); 217 219 foreach (Subscription sub in Subscriptions) { 218 220 if (sub.SaveToConfig) { 219 221 string setting = sub.GetSettingString(); 220 Settings.Default.AzureSubscriptions.Add(setting); 221 } 222 } 223 //TODO: 224 //Settings.Default.Upgrade(); 225 //Settings.Default.Save(); 226 222 setting = CryptoService.EncryptString(CryptoService.ToSecureString(setting)); 223 strCol.Add(setting); 224 } 225 } 226 Settings.Default.Save(); 227 227 } 228 228 … … 230 230 StringCollection strCol = new StringCollection(); 231 231 foreach (string azureSub in strCol) { 232 Subscription s = Subscription.ParseSettingString(azureSub); 232 string setting = CryptoService.ToInsecureString(CryptoService.DecryptString(azureSub)); 233 Subscription s = Subscription.ParseSettingString(setting); 233 234 s.SaveToConfig = true; 234 235 Add(s); -
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/HeuristicLab.Clients.Hive.CloudManager-3.3.csproj
r7655 r7663 45 45 <Reference Include="System.Core" /> 46 46 <Reference Include="System.Drawing" /> 47 <Reference Include="System.Security" /> 47 48 <Reference Include="System.Windows.Forms" /> 48 49 <Reference Include="System.Windows.Forms.DataVisualization" /> … … 62 63 <Compile Include="Azure\Utils.cs" /> 63 64 <Compile Include="CloudManagerClient.cs" /> 65 <Compile Include="CryptoService.cs" /> 64 66 <Compile Include="MenuItems\CloudManagerMenuItem.cs" /> 65 67 <Compile Include="Model\AffinityGroup.cs" />
Note: See TracChangeset
for help on using the changeset viewer.