Example #1
0
 public InstanceTreeViewItemViewModel(Instance instance, ApplicationTreeViewItemViewModel parentApplication) : base(parentApplication, true)
 {
     Messenger.Default.Send <NotificationMessageAction <ICloudFoundryProvider> >(new NotificationMessageAction <ICloudFoundryProvider>(Messages.GetCloudFoundryProvider, p => this.provider = p));
     this.app        = parentApplication.Application;
     this.instance   = instance;
     this.dispatcher = Dispatcher.CurrentDispatcher;
 }
 public InstanceTreeViewItemViewModel(Instance instance, ApplicationTreeViewItemViewModel parentApplication)
     : base(parentApplication, true)
 {
     Messenger.Default.Send<NotificationMessageAction<ICloudFoundryProvider>>(new NotificationMessageAction<ICloudFoundryProvider>(Messages.GetCloudFoundryProvider, p => this.provider = p));
     this.app = parentApplication.Application;
     this.instance = instance;
     this.dispatcher = Dispatcher.CurrentDispatcher;
 }