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>
|
</StackLayout>
|
||||||
</StackLayoutItem>
|
</StackLayoutItem>
|
||||||
<StackLayoutItem HorizontalAlignment="Stretch" Expand="True">
|
<StackLayoutItem HorizontalAlignment="Stretch" Expand="True">
|
||||||
<StackLayout Orientation="Vertical">
|
<TabControl ID="tabMain">
|
||||||
<Label ID="lblInformation">Information:</Label>
|
<TabPage Text="Information">
|
||||||
<StackLayoutItem HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Expand="True">
|
<StackLayout Orientation="Vertical">
|
||||||
<TextArea ID="txtInformation" ReadOnly="True" />
|
<StackLayoutItem HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Expand="True">
|
||||||
</StackLayoutItem>
|
<TextArea ID="txtInformation" ReadOnly="True" />
|
||||||
</StackLayout>
|
</StackLayoutItem>
|
||||||
|
</StackLayout>
|
||||||
|
</TabPage>
|
||||||
|
</TabControl>
|
||||||
</StackLayoutItem>
|
</StackLayoutItem>
|
||||||
</StackLayout>
|
</StackLayout>
|
||||||
<Form.Menu>
|
<Form.Menu>
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ namespace exeinfogui
|
|||||||
TextBox txtOs;
|
TextBox txtOs;
|
||||||
TextBox txtSubsystem;
|
TextBox txtSubsystem;
|
||||||
TextBox txtType;
|
TextBox txtType;
|
||||||
|
TabControl tabMain;
|
||||||
|
|
||||||
public MainForm()
|
public MainForm()
|
||||||
{
|
{
|
||||||
@@ -105,6 +106,12 @@ namespace exeinfogui
|
|||||||
txtSubsystem.Visible = true;
|
txtSubsystem.Visible = true;
|
||||||
txtSubsystem.Text = recognizedExe.RequiredOperatingSystem.Subsystem;
|
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)
|
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>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\libexeinfo\libexeinfo.csproj">
|
<ProjectReference Include="..\libexeinfo\libexeinfo.csproj">
|
||||||
<Project>{5DD22357-AEA1-4B1D-9CAB-F51873A3A5D0}</Project>
|
|
||||||
<Name>libexeinfo</Name>
|
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
Reference in New Issue
Block a user