Example #1
0
 private void ProcessCloudNotification(NotificationMessage <Cloud> message)
 {
     if (message.Notification.Equals(Messages.OpenCloud))
     {
         var selectedCloudViewModel = this.Clouds.SingleOrDefault((i) => i.Cloud.Equals(message.Content));
         if (selectedCloudViewModel == null)
         {
             selectedCloudViewModel = new CloudViewModel(message.Content);
             this.Clouds.Add(selectedCloudViewModel);
         }
         this.SelectedCloudView = selectedCloudViewModel;
     }
 }
Example #2
0
 private void OpenApplication(Application application)
 {
     if (application.Parent != null)
     {
         var selectedCloudViewModel = this.Clouds.SingleOrDefault((i) => i.Cloud.Equals(application.Parent));
         if (selectedCloudViewModel == null)
         {
             var currentCloud = provider.Clouds.SingleOrDefault((c) => c.Equals(application.Parent));
             selectedCloudViewModel = new CloudViewModel(currentCloud);
             this.Clouds.Add(selectedCloudViewModel);
         }
         this.SelectedCloudView = selectedCloudViewModel;
     }
     this.SelectedCloudView.SelectedApplication       = application;
     this.SelectedCloudView.IsApplicationViewSelected = true;
 }
Example #3
0
 private void CloseCloud(CloudViewModel cloudView)
 {
     Messenger.Default.Unregister(cloudView);
     this.Clouds.Remove(cloudView);
 }
Example #4
0
 private void ProcessCloudNotification(NotificationMessage<Cloud> message)
 {
     if (message.Notification.Equals(Messages.OpenCloud))
     {
         var selectedCloudViewModel = this.Clouds.SingleOrDefault((i) => i.Cloud.Equals(message.Content));
         if (selectedCloudViewModel == null)
         {
             selectedCloudViewModel = new CloudViewModel(message.Content);
             this.Clouds.Add(selectedCloudViewModel);
         }
         this.SelectedCloudView = selectedCloudViewModel;
     }
 }
Example #5
0
 private void OpenApplication(Application application)
 {
     if (application.Parent != null)
     {
         var selectedCloudViewModel = this.Clouds.SingleOrDefault((i) => i.Cloud.Equals(application.Parent));
         if (selectedCloudViewModel == null)
         {
             var currentCloud = provider.Clouds.SingleOrDefault((c) => c.Equals(application.Parent));
             selectedCloudViewModel = new CloudViewModel(currentCloud);
             this.Clouds.Add(selectedCloudViewModel);
         }
         this.SelectedCloudView = selectedCloudViewModel;
     }
     this.SelectedCloudView.SelectedApplication = application;
     this.SelectedCloudView.IsApplicationViewSelected = true;
 }
Example #6
0
 private void CloseCloud(CloudViewModel cloudView)
 {
     Messenger.Default.Unregister(cloudView);
     this.Clouds.Remove(cloudView);
 }