Files
mirror-processhacker/trunk/ProcessHacker/Forms/StructWindow.cs
T
wj32 c44b441361 close struct window on error
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@423 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2008-12-25 10:48:30 +00:00

44 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ProcessHacker.Structs;
namespace ProcessHacker
{
public partial class StructWindow : Form
{
private int _pid;
private int _address;
private StructDef _struct;
public StructWindow(int pid, int address, StructDef struc)
{
InitializeComponent();
_pid = pid;
_address = address;
_struct = struc;
}
private void StructWindow_Load(object sender, EventArgs e)
{
StructViewer sv = new StructViewer(_pid, _address, _struct);
if (sv.Error)
this.Close();
sv.Dock = DockStyle.Fill;
panel.Controls.Add(sv);
}
private void buttonClose_Click(object sender, EventArgs e)
{
this.Close();
}
}
}