Files
mirror-processhacker/trunk/ProcessHacker/Forms/JobWindow.cs
T
dmex04 394874b784 bugfix: #2846076 - PH always above child windows when "always on top" enabled
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@1976 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-09-27 13:28:37 +00:00

42 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.Components;
using ProcessHacker.Native.Objects;
namespace ProcessHacker
{
public partial class JobWindow : Form
{
JobProperties _jobProps;
public JobWindow(JobObjectHandle jobHandle)
{
InitializeComponent();
this.AddEscapeToClose();
if (Program.HackerWindow.TopMost)
this.TopMost = true;
_jobProps = new JobProperties(jobHandle);
_jobProps.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();
}
}
}