Changeset 7655 for branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/CloudManagerClient.cs
- Timestamp:
- 03/22/12 16:08:20 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/CloudManagerClient.cs
r7577 r7655 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Collections.Specialized; 24 25 using HeuristicLab.Clients.Hive.CloudManager.Azure; 25 26 using HeuristicLab.Clients.Hive.CloudManager.Model; 27 using HeuristicLab.Clients.Hive.CloudManager.Properties; 26 28 using HeuristicLab.Common; 27 29 using HeuristicLab.Core; … … 211 213 } 212 214 213 215 public void PersistSubscriptionsToUserConfig() { 216 StringCollection strCol = new StringCollection(); 217 foreach (Subscription sub in Subscriptions) { 218 if (sub.SaveToConfig) { 219 string setting = sub.GetSettingString(); 220 Settings.Default.AzureSubscriptions.Add(setting); 221 } 222 } 223 //TODO: 224 //Settings.Default.Upgrade(); 225 //Settings.Default.Save(); 226 227 } 228 229 public void RestoreSubscriptionsFromUserConfig() { 230 StringCollection strCol = new StringCollection(); 231 foreach (string azureSub in strCol) { 232 Subscription s = Subscription.ParseSettingString(azureSub); 233 s.SaveToConfig = true; 234 Add(s); 235 } 236 } 214 237 } 215 238 }
Note: See TracChangeset
for help on using the changeset viewer.