@ -7,6 +7,7 @@
using System ;
using System ;
using System.Collections ;
using System.Collections ;
using System.Collections.Generic ;
using System.Drawing ;
using System.Drawing ;
using System.Windows.Forms ;
using System.Windows.Forms ;
@ -55,7 +56,7 @@ namespace AddInScout
try {
try {
System . Diagnostics . Process . Start ( url ) ;
System . Diagnostics . Process . Start ( url ) ;
} catch ( Exception ) {
} catch ( Exception ) {
// Silent: On my System the browser starts but Process.Start throws an exception. Mike 2.11.2004/Notebook/ICE 1517 on the way to DevCon Europe 2004
// Silent: On my System the browser starts but Process.Start throws an exception. Mike 2.11.2004/Notebook/ICE 1517 on the way to DevCon Europe 2004
// MessageBox.Show("Unable to Start Browser\n" + ex.ToString());
// MessageBox.Show("Unable to Start Browser\n" + ex.ToString());
}
}
} else if ( selectedItem . Text . ToLower ( ) . Equals ( "filename" ) ) {
} else if ( selectedItem . Text . ToLower ( ) . Equals ( "filename" ) ) {
@ -77,8 +78,7 @@ namespace AddInScout
new ListViewItem ( new string [ ] { "Copyright" , ai . Properties [ "copyright" ] } ) ,
new ListViewItem ( new string [ ] { "Copyright" , ai . Properties [ "copyright" ] } ) ,
new ListViewItem ( new string [ ] { "Description" , ai . Properties [ "description" ] } ) ,
new ListViewItem ( new string [ ] { "Description" , ai . Properties [ "description" ] } ) ,
new ListViewItem ( new string [ ] { "FileName" , ai . FileName } ) ,
new ListViewItem ( new string [ ] { "FileName" , ai . FileName } ) ,
new ListViewItem ( new string [ ] { "Url" , ai . Properties [ "url" ] } ) ,
new ListViewItem ( new string [ ] { "Url" , ai . Properties [ "url" ] } )
new ListViewItem ( new string [ ] { "Version" , ai . Properties [ "version" ] } )
} ;
} ;
// set Filename & Url rows to 'weblink' style
// set Filename & Url rows to 'weblink' style
@ -86,6 +86,27 @@ namespace AddInScout
items [ 3 ] . ForeColor = items [ 4 ] . ForeColor = Color . Blue ;
items [ 3 ] . ForeColor = items [ 4 ] . ForeColor = Color . Blue ;
addInDetailsListView . Items . AddRange ( items ) ;
addInDetailsListView . Items . AddRange ( items ) ;
if ( ai . Version ! = null )
addInDetailsListView . Items . Add ( new ListViewItem ( new string [ ] { "Version" , ai . Version . ToString ( ) } ) ) ;
foreach ( KeyValuePair < string , Version > entry in ai . Manifest . Identities ) {
ListViewItem newListViewItem = new ListViewItem ( "Identity" ) ;
newListViewItem . SubItems . Add ( entry . Key + " = " + entry . Value ) ;
addInDetailsListView . Items . Add ( newListViewItem ) ;
}
foreach ( AddInReference entry in ai . Manifest . Conflicts ) {
ListViewItem newListViewItem = new ListViewItem ( "Conflict" ) ;
newListViewItem . SubItems . Add ( entry . ToString ( ) ) ;
addInDetailsListView . Items . Add ( newListViewItem ) ;
}
foreach ( AddInReference entry in ai . Manifest . Dependencies ) {
ListViewItem newListViewItem = new ListViewItem ( "Dependency" ) ;
newListViewItem . SubItems . Add ( entry . ToString ( ) ) ;
addInDetailsListView . Items . Add ( newListViewItem ) ;
}
foreach ( Runtime runtime in ai . Runtimes ) {
foreach ( Runtime runtime in ai . Runtimes ) {
ListViewItem newListViewItem = new ListViewItem ( "Runtime Library" ) ;
ListViewItem newListViewItem = new ListViewItem ( "Runtime Library" ) ;
newListViewItem . SubItems . Add ( runtime . Assembly ) ;
newListViewItem . SubItems . Add ( runtime . Assembly ) ;