public override void Run() { var wb = Workbench.Instance; var items = wb.ActiveSiteExplorer.SelectedItems; var connMgr = ServiceRegistry.GetService <ServerConnectionManager>(); var conn = connMgr.GetConnection(wb.ActiveSiteExplorer.ConnectionName); if (!IsValid(conn)) { MessageService.ShowError(string.Format(Strings.ConnectionDoesNotSupportRequiredInterfaces, conn.ProviderName)); return; } //Can only show properties of one selected item if (items.Length == 1) { var openMgr = ServiceRegistry.GetService <OpenResourceManager>(); var icons = ResourceIconCache.CreateDefault(); var dlg = new ResourcePropertiesDialog(icons, conn, items[0].ResourceId, openMgr, wb.ActiveSiteExplorer); dlg.ShowDialog(wb); } }