public ApplicationViewModel(IisInformationViewModel parentVieModel, string website, string appPath)
 {
     SetApplicationViewModel();
     ParentVieModel = parentVieModel;
     if (!string.IsNullOrWhiteSpace(website) && !string.IsNullOrWhiteSpace(appPath))
     {
         SelectedApplicationOverView = ApplicationOverviewViewModels.FirstOrDefault(a => a.ParentWebsite.Equals(website) && a.Path.Equals(appPath));
     }
 }
        public WebSiteViewModel(IisInformationViewModel parentViewModel, string websiteName, IList<string> appPaths)
        {
            ParentViewModel = parentViewModel;
            SetWebSiteViewModel();

            SelectedWebSiteOverView = Websites.FirstOrDefault(w => w.Name.Equals(websiteName));

            if (appPaths != null && appPaths.Any())
            {
                foreach (string appPath in appPaths)
                {
                    foreach (ApplicationOverVewViewModel model in ApplicationOverviewViewModels)
                    {
                        model.IsSelected = model.Path.Equals(appPath);
                    }
                }
            }
        }
 public ApplicationViewModel(IisInformationViewModel parentVieModel)
     : this(parentVieModel, string.Empty, string.Empty)
 {
 }
 public WebSiteViewModel(IisInformationViewModel parentViewModel, string websiteName)
     : this(parentViewModel, websiteName, null)
 {
 }
 public WebSiteViewModel(IisInformationViewModel parentViewModel)
     : this(parentViewModel, string.Empty)
 {
 }