mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
e43aec1c5e
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@4778 21ef857c-d57f-4fe0-8362-d861dc6d29cd
36 lines
903 B
C#
36 lines
903 B
C#
using System;
|
|
using System.Windows.Forms;
|
|
using ProcessHacker.Native.Objects;
|
|
|
|
namespace ProcessHacker.Components
|
|
{
|
|
public partial class TmRmProperties : UserControl
|
|
{
|
|
private readonly ResourceManagerHandle _rmHandle;
|
|
|
|
public TmRmProperties(ResourceManagerHandle rmHandle)
|
|
{
|
|
InitializeComponent();
|
|
|
|
_rmHandle = rmHandle;
|
|
_rmHandle.Reference();
|
|
|
|
this.UpdateInfo();
|
|
}
|
|
|
|
private void UpdateInfo()
|
|
{
|
|
try
|
|
{
|
|
textDescription.Text = _rmHandle.Description;
|
|
textGuid.Text = _rmHandle.Guid.ToString("B");
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
textDescription.Text = "(" + ex.Message + ")";
|
|
textGuid.Text = "(" + ex.Message + ")";
|
|
}
|
|
}
|
|
}
|
|
}
|