mirror of
https://github.com/claunia/libexeinfo.git
synced 2025-12-16 19:14:24 +00:00
Added GUI page for strings.
This commit is contained in:
@@ -41,12 +41,15 @@
|
||||
</StackLayout>
|
||||
</StackLayoutItem>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch" Expand="True">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<Label ID="lblInformation">Information:</Label>
|
||||
<StackLayoutItem HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Expand="True">
|
||||
<TextArea ID="txtInformation" ReadOnly="True" />
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
<TabControl ID="tabMain">
|
||||
<TabPage Text="Information">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayoutItem HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Expand="True">
|
||||
<TextArea ID="txtInformation" ReadOnly="True" />
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
</TabPage>
|
||||
</TabControl>
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
<Form.Menu>
|
||||
|
||||
@@ -42,6 +42,7 @@ namespace exeinfogui
|
||||
TextBox txtOs;
|
||||
TextBox txtSubsystem;
|
||||
TextBox txtType;
|
||||
TabControl tabMain;
|
||||
|
||||
public MainForm()
|
||||
{
|
||||
@@ -105,6 +106,12 @@ namespace exeinfogui
|
||||
txtSubsystem.Visible = true;
|
||||
txtSubsystem.Text = recognizedExe.RequiredOperatingSystem.Subsystem;
|
||||
}
|
||||
|
||||
if(recognizedExe.Strings != null && recognizedExe.Strings.Any())
|
||||
{
|
||||
TabPageStrings tabStrings = new TabPageStrings(recognizedExe.Strings);
|
||||
tabMain.Pages.Add(tabStrings);
|
||||
}
|
||||
}
|
||||
|
||||
protected void OnMnuAboutClick(object sender, EventArgs e)
|
||||
|
||||
8
exeinfogui/TabPageStrings.xeto
Normal file
8
exeinfogui/TabPageStrings.xeto
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<TabPage Text="Strings" xmlns="http://schema.picoe.ca/eto.forms" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayoutItem HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Expand="True">
|
||||
<GridView ID="treeStrings" ShowHeader="False"/>
|
||||
</StackLayoutItem>
|
||||
</StackLayout>
|
||||
</TabPage>
|
||||
28
exeinfogui/TabPageStrings.xeto.cs
Normal file
28
exeinfogui/TabPageStrings.xeto.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Eto.Forms;
|
||||
using Eto.Drawing;
|
||||
using Eto.Serialization.Xaml;
|
||||
|
||||
namespace exeinfogui
|
||||
{
|
||||
public class TabPageStrings : TabPage
|
||||
{
|
||||
GridView treeStrings;
|
||||
|
||||
//IEnumerable<string> strings;
|
||||
|
||||
public TabPageStrings(IEnumerable<string> strings)
|
||||
{
|
||||
XamlReader.Load(this);
|
||||
|
||||
treeStrings.DataStore = strings;
|
||||
treeStrings.Columns.Add(new GridColumn
|
||||
{
|
||||
DataCell = new TextBoxCell {Binding = Binding.Property<string, string>(r => r)},
|
||||
HeaderText = "String"
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -15,8 +15,6 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\libexeinfo\libexeinfo.csproj">
|
||||
<Project>{5DD22357-AEA1-4B1D-9CAB-F51873A3A5D0}</Project>
|
||||
<Name>libexeinfo</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user