Esempio n. 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;
     }
 }
Esempio n. 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;
 }
Esempio n. 3
0
 private void CloseCloud(CloudViewModel cloudView)
 {
     Messenger.Default.Unregister(cloudView);
     this.Clouds.Remove(cloudView);
 }
Esempio n. 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;
     }
 }
Esempio n. 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;
 }
Esempio n. 6
0
 private void CloseCloud(CloudViewModel cloudView)
 {
     Messenger.Default.Unregister(cloudView);
     this.Clouds.Remove(cloudView);
 }