Files
mirror-processhacker/1.x/trunk/ProcessHacker/Components/TmTmProperties.cs
T
dmex e43aec1c5e PH1.x: Code Cleanup/Fixes
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@4778 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2011-10-29 08:32:37 +00:00

37 lines
975 B
C#

using System;
using System.Windows.Forms;
using ProcessHacker.Native.Objects;
using ProcessHacker.Native;
namespace ProcessHacker.Components
{
public partial class TmTmProperties : UserControl
{
private readonly TmHandle _tmHandle;
public TmTmProperties(TmHandle tmHandle)
{
InitializeComponent();
_tmHandle = tmHandle;
_tmHandle.Reference();
this.UpdateInfo();
}
private void UpdateInfo()
{
try
{
textGuid.Text = _tmHandle.BasicInformation.TmIdentity.ToString("B");
textLogFileName.Text = FileUtils.GetFileName(FileUtils.GetFileName(_tmHandle.LogFileName));
}
catch (Exception ex)
{
textGuid.Text = "(" + ex.Message + ")";
textLogFileName.Text = "(" + ex.Message + ")";
}
}
}
}