2 using System.ComponentModel;
\r
3 using System.Drawing;
\r
4 using System.Windows.Forms;
\r
6 using NaGet.Packages;
\r
7 using NaGet.Packages.Install;
\r
8 using System.Reflection;
\r
10 namespace AppliStation.PackageInfo
\r
13 /// Description of InstallerInfoForm.
\r
15 public partial class InstallerInfoForm : UserControl
\r
17 private Installer inst;
\r
19 public InstallerInfoForm()
\r
22 // The InitializeComponent() call is required for Windows Forms designer support.
\r
24 InitializeComponent();
\r
27 public Installer SelectedObject {
\r
28 get { return inst; }
\r
35 private void updateInst()
\r
37 installerUrlTextBox.Text = (inst == null || inst.Url == null)?
\r
38 string.Empty : inst.Url.Href;
\r
40 osValueLabel.Text = PackageDescripter.GetOSValueLabel(inst.Platform);
\r
41 archValueLabel.Text = PackageDescripter.GetArchValueLabel(inst.Platform);
\r
43 cannotRunLabel.Visible = ! ((inst.Platform == null) || inst.Platform.IsRunnable());
\r