コード例 #1
0
 public SitesListViewItem(Site item, SitesPage page)
     : base(item.Name)
 {
     Item  = item;
     _page = page;
     SubItems.Add(new ListViewSubItem(this, Item.Id.ToString(CultureInfo.InvariantCulture)));
     SubItems.Add(new ListViewSubItem(this, CommonHelper.ToString(Item.State)));
     SubItems.Add(new ListViewSubItem(this, ToString(Item.Bindings)));
     SubItems.Add(new ListViewSubItem(this, Item.Applications[0].VirtualDirectories[0].PhysicalPath));
     ImageIndex = item.State == ObjectState.Started ? 0 : 1;
 }
コード例 #2
0
            public SitesListViewItem(Site item, SitesPage page)
                : base(item.Name)
            {
                Item  = item;
                _page = page;
                var path   = Item.Applications[0].VirtualDirectories[0].PhysicalPath;
                var exists = Directory.Exists(path.ExpandIisExpressEnvironmentVariables());

                SubItems.Add(new ListViewSubItem(this, Item.Id.ToString(CultureInfo.InvariantCulture)));
                SubItems.Add(new ListViewSubItem(this, CommonHelper.ToString(Item.State)));
                SubItems.Add(new ListViewSubItem(this, ToString(Item.Bindings)));
                SubItems.Add(new ListViewSubItem(this, path));
                SubItems.Add(new ListViewSubItem(this, exists.ToString()));
                ImageIndex = item.State == ObjectState.Started ? 0 : 1;
            }
コード例 #3
0
 public PageTaskList(SitesPage owner)
 {
     _owner = owner;
 }