2018-02-28 20:06:05 +00:00
|
|
|
|
using System.Collections.Generic;
|
2018-02-27 21:33:43 +00:00
|
|
|
|
using Eto.Forms;
|
|
|
|
|
|
using Eto.Serialization.Xaml;
|
|
|
|
|
|
|
|
|
|
|
|
namespace exeinfogui
|
|
|
|
|
|
{
|
|
|
|
|
|
public class TabPageStrings : TabPage
|
|
|
|
|
|
{
|
|
|
|
|
|
GridView treeStrings;
|
2018-02-28 20:06:05 +00:00
|
|
|
|
|
|
|
|
|
|
public TabPageStrings()
|
2018-02-27 21:33:43 +00:00
|
|
|
|
{
|
|
|
|
|
|
XamlReader.Load(this);
|
|
|
|
|
|
|
|
|
|
|
|
treeStrings.Columns.Add(new GridColumn
|
|
|
|
|
|
{
|
2018-02-28 20:06:05 +00:00
|
|
|
|
DataCell = new TextBoxCell {Binding = Binding.Property<string, string>(r => r)},
|
2018-02-27 21:33:43 +00:00
|
|
|
|
HeaderText = "String"
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
2018-02-28 20:06:05 +00:00
|
|
|
|
|
|
|
|
|
|
public void Update(IEnumerable<string> strings)
|
|
|
|
|
|
{
|
|
|
|
|
|
treeStrings.DataStore = strings;
|
|
|
|
|
|
}
|
2018-02-27 21:33:43 +00:00
|
|
|
|
}
|
2018-02-28 20:06:05 +00:00
|
|
|
|
}
|