Files
mirror-processhacker/1.x/branches/ph-plugins/ProcessHacker/Components/TmRmProperties.cs
T
wj32 7bd28e4357 moved branches, tags, trunk to 1.x branch
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2304 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-10-25 02:22:46 +00:00

41 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using ProcessHacker.Native.Objects;
namespace ProcessHacker.Components
{
public partial class TmRmProperties : UserControl
{
private ResourceManagerHandle _rmHandle;
public TmRmProperties(ResourceManagerHandle rmHandle)
{
InitializeComponent();
_rmHandle = rmHandle;
_rmHandle.Reference();
this.UpdateInfo();
}
private void UpdateInfo()
{
try
{
textDescription.Text = _rmHandle.GetDescription();
textGuid.Text = _rmHandle.GetGuid().ToString("B");
}
catch (Exception ex)
{
textDescription.Text = "(" + ex.Message + ")";
textGuid.Text = "(" + ex.Message + ")";
}
}
}
}