Files
mirror-processhacker/1.x/branches/ph-plugins/ProcessHacker/Components/EventPairProperties.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

45 lines
1.1 KiB
C#

using System;
using System.Windows.Forms;
using ProcessHacker.Common;
using ProcessHacker.Native.Objects;
namespace ProcessHacker.Components
{
public partial class EventPairProperties : UserControl
{
private EventPairHandle _eventPairHandle;
public EventPairProperties(EventPairHandle eventPairHandle)
{
InitializeComponent();
_eventPairHandle = eventPairHandle;
_eventPairHandle.Reference();
}
private void buttonSetHigh_Click(object sender, EventArgs e)
{
try
{
_eventPairHandle.SetHigh();
}
catch (Exception ex)
{
PhUtils.ShowException("Unable to set the high event", ex);
}
}
private void buttonSetLow_Click(object sender, EventArgs e)
{
try
{
_eventPairHandle.SetLow();
}
catch (Exception ex)
{
PhUtils.ShowException("Unable to set the low event", ex);
}
}
}
}