Added GUI pages for GEM resources.

This commit is contained in:
2018-02-28 20:06:05 +00:00
parent b1ef08f06a
commit d4fe2c8485
18 changed files with 1104 additions and 25 deletions

View File

@@ -1,8 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Collections.Generic;
using Eto.Forms;
using Eto.Drawing;
using Eto.Serialization.Xaml;
namespace exeinfogui
@@ -10,19 +7,21 @@ namespace exeinfogui
public class TabPageStrings : TabPage
{
GridView treeStrings;
//IEnumerable<string> strings;
public TabPageStrings(IEnumerable<string> strings)
public TabPageStrings()
{
XamlReader.Load(this);
treeStrings.DataStore = strings;
treeStrings.Columns.Add(new GridColumn
{
DataCell = new TextBoxCell {Binding = Binding.Property<string, string>(r => r)},
DataCell = new TextBoxCell {Binding = Binding.Property<string, string>(r => r)},
HeaderText = "String"
});
}
public void Update(IEnumerable<string> strings)
{
treeStrings.DataStore = strings;
}
}
}
}