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
38 lines
875 B
C#
38 lines
875 B
C#
using System;
|
|
using System.Windows.Forms;
|
|
using ProcessHacker.Components;
|
|
using ProcessHacker.Native.Objects;
|
|
|
|
namespace ProcessHacker
|
|
{
|
|
public partial class JobWindow : Form
|
|
{
|
|
readonly JobProperties _jobProps;
|
|
|
|
public JobWindow(JobObjectHandle jobHandle)
|
|
{
|
|
InitializeComponent();
|
|
|
|
this.AddEscapeToClose();
|
|
this.SetTopMost();
|
|
|
|
_jobProps = new JobProperties(jobHandle)
|
|
{
|
|
Dock = DockStyle.Fill
|
|
};
|
|
|
|
panelJob.Controls.Add(_jobProps);
|
|
}
|
|
|
|
private void JobWindow_FormClosing(object sender, FormClosingEventArgs e)
|
|
{
|
|
_jobProps.SaveSettings();
|
|
}
|
|
|
|
private void buttonClose_Click(object sender, EventArgs e)
|
|
{
|
|
this.Close();
|
|
}
|
|
}
|
|
}
|