Пример #1
0
        private void CreateEndpointsPanel(IApplication application, ISolutionBuilderViewModel solutionBuilderModel, IEnumerable <IAbstractEndpoint> endpoints, int position)
        {
            var endpointsVM = new InnerPanelViewModel();

            endpointsVM.Title = "Deployed to the following Endpoints";
            endpointsVM.Items.Add(new InnerPanelTitle {
                Product = application.As <IProductElement>(), Text = application.InstanceName
            });
            foreach (var endpoint in endpoints)
            {
                endpointsVM.Items.Add(new InnerPanelItem {
                    Product = endpoint.As <IProductElement>(), Text = endpoint.As <IProductElement>().InstanceName
                });
            }
            this.SetPanel(position, new LogicalView(new LogicalViewModel(solutionBuilderModel, endpointsVM)));
        }
 private void CreateEndpointsPanel(IApplication application, ISolutionBuilderViewModel solutionBuilderModel, IEnumerable<IAbstractEndpoint> endpoints, int position)
 {
     var endpointsVM = new InnerPanelViewModel();
     endpointsVM.Title = "Deployed to the following Endpoints";
     endpointsVM.Items.Add(new InnerPanelTitle { Product = application.As<IProductElement>(), Text = application.InstanceName });
     foreach (var endpoint in endpoints)
     {
         endpointsVM.Items.Add(new InnerPanelItem { Product = endpoint.As<IProductElement>(), Text = endpoint.As<IProductElement>().InstanceName });
     }
     this.SetPanel(position, new LogicalView(new LogicalViewModel(solutionBuilderModel, endpointsVM)));
 }