private IPromptsViewModelService CreatePromptsViewModelService() { const string absoluteServiceUri = "/Prompts.Service/api/Prompts"; string uri; if (Application.Current.Host.Source != null) { uri = new Uri(Application.Current.Host.Source, absoluteServiceUri).AbsoluteUri; } else { throw new Exception( "An excpetion occured while trying to resolve 'Application.Current.Host.Source'"); } return(new PromptsViewModelService( new PromptsViewModelBuilder( new PromptBuilder( MultiSelectTreeContainer.Create(), DropDownContainer.Create(), ShoppingCartContainer.Create(), CasscadingSerachContainer.Create(), SingleSelectTreeContainer.Create(), EmptyPromptContainer.Create(), new RecursiveTreeContainer().Create(), new RecursiveSingleSelectTreeContainer().Create())), ServiceInjector.Inject <IPromptServiceClient>())); }
public PromptContainer() { TextColor = Colors.Black; MultiSelectTreeContainer = new MultiSelectTreeContainer(); DropDownContainer = new DropDownContainer(); CasscadingSerachContainer = new CasscadingSearchContainer(); ShoppingCartContainer = new ShoppingCartContainer(); EmptyPromptContainer = new EmptyPromptContainer(); SingleSelectTreeContainer = new SingleSelectTreeContainer(); }