Changeset 7441 for branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Views/CloudResourcesView.cs
- Timestamp:
- 02/01/12 15:14:22 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Views/CloudResourcesView.cs
r7433 r7441 292 292 viewHost.Content = (IContent)e.Node.Tag; 293 293 } 294 295 private void btnSave_Click(object sender, EventArgs e) { 296 if (treeCloudResources.SelectedNode != null) { 297 TreeNode tn = treeCloudResources.SelectedNode; 298 TreeNode tnParent = tn.Parent; 299 Object obj = tn.Tag; 300 Object objParent = tnParent.Tag; 301 if (obj is Subscription) { 302 // CloudManagerClient.Instance.Save((Subscription)obj); 303 } else if (obj is HostedService) { 304 // nothing to do so far 305 } else if (obj is Deployment && objParent is HostedService) { 306 HostedService hs = (HostedService)objParent; 307 Deployment dep = (Deployment)obj; 308 //call async 309 CloudManagerClient.Instance.ChangeIntances(dep, hs); 310 } 311 } 312 } 313 314 private void btnDelete_Click(object sender, EventArgs e) { 315 if (treeCloudResources.SelectedNode != null) { 316 TreeNode tn = treeCloudResources.SelectedNode; 317 TreeNode tnParent = tn.Parent; 318 Object obj = tn.Tag; 319 Object objParent = null; 320 if (tnParent != null) { 321 objParent = tnParent.Tag; 322 } 323 viewHost.Content = null; 324 if (obj is Subscription) { 325 CloudManagerClient.Instance.Delete((Subscription)obj); 326 } else if (obj is HostedService) { 327 // nothing to do so far 328 } else if (obj is Deployment && objParent is HostedService) { 329 HostedService hs = (HostedService)objParent; 330 Deployment dep = (Deployment)obj; 331 //call async 332 CloudManagerClient.Instance.Delete(dep, hs); 333 } 334 } 335 } 294 336 } 295 337 }
Note: See TracChangeset
for help on using the changeset viewer.