Use libexeinfo to retrieve strings and version from found executable files.
Find possible readme files. Present all of that information to the user as a way to fill fields when adding an application.
This commit is contained in:
50
pnlVersions.xeto.cs
Normal file
50
pnlVersions.xeto.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
using Eto.Forms;
|
||||
using Eto.Serialization.Xaml;
|
||||
|
||||
namespace apprepodbmgr.Eto
|
||||
{
|
||||
public class pnlVersions : Panel
|
||||
{
|
||||
public pnlVersions()
|
||||
{
|
||||
XamlReader.Load(this);
|
||||
|
||||
treeArchs.AllowMultipleSelection = true;
|
||||
treeOs.AllowMultipleSelection = true;
|
||||
treeVersions.AllowMultipleSelection = false;
|
||||
|
||||
treeArchs.ShowHeader = false;
|
||||
treeOs.ShowHeader = true;
|
||||
treeVersions.ShowHeader = false;
|
||||
|
||||
treeArchs.Columns.Add(new GridColumn
|
||||
{
|
||||
DataCell = new TextBoxCell {Binding = Binding.Property<string, string>(r => r)},
|
||||
HeaderText = "Arch"
|
||||
});
|
||||
treeOs.Columns.Add(new GridColumn
|
||||
{
|
||||
DataCell = new TextBoxCell {Binding = Binding.Property<TargetOsEntry, string>(r => r.name)},
|
||||
HeaderText = "Name"
|
||||
});
|
||||
treeOs.Columns.Add(new GridColumn
|
||||
{
|
||||
DataCell = new TextBoxCell {Binding = Binding.Property<TargetOsEntry, string>(r => r.version)},
|
||||
HeaderText = "Version"
|
||||
});
|
||||
treeVersions.Columns.Add(new GridColumn
|
||||
{
|
||||
DataCell = new TextBoxCell {Binding = Binding.Property<string, string>(r => r)},
|
||||
HeaderText = "Version"
|
||||
});
|
||||
}
|
||||
|
||||
#region XAML UI elements
|
||||
#pragma warning disable 0649
|
||||
public GridView treeArchs;
|
||||
public GridView treeOs;
|
||||
public GridView treeVersions;
|
||||
#pragma warning restore 0649
|
||||
#endregion XAML UI elements
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user