Add segments to gui.

This commit is contained in:
2018-03-03 02:48:47 +00:00
parent a5f2e805f2
commit 4120619128
4 changed files with 87 additions and 1 deletions

View File

@@ -45,13 +45,16 @@ namespace exeinfogui
TextBox txtOs;
TextBox txtSubsystem;
TextBox txtType;
TabPageSegments tabSegments;
public MainForm()
{
XamlReader.Load(this);
tabSegments = new TabPageSegments {Visible = false};
tabStrings = new TabPageStrings {Visible = false};
tabGemResources = new TabGemResources {Visible = false};
tabMain.Pages.Add(tabSegments);
tabMain.Pages.Add(tabStrings);
tabMain.Pages.Add(tabGemResources);
}
@@ -136,6 +139,12 @@ namespace exeinfogui
tabStrings.Update(recognizedExe.Strings);
tabStrings.Visible = true;
}
if(recognizedExe.Segments != null && recognizedExe.Segments.Any())
{
tabSegments.Update(recognizedExe.Segments);
tabSegments.Visible = true;
}
}
protected void OnMnuAboutClick(object sender, EventArgs e)