Files
mirror-processhacker/trunk/ProcessHacker/Forms/SessionInformationWindow.cs
T
wj32 9cb7746b79 added users list
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@1384 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-06-07 08:25:00 +00:00

35 lines
1.2 KiB
C#

using System;
using System.Windows.Forms;
using ProcessHacker.Native.Objects;
namespace ProcessHacker
{
public partial class SessionInformationWindow : Form
{
public SessionInformationWindow(TerminalServerSession session)
{
InitializeComponent();
this.AddEscapeToClose();
labelUsername.Text = session.DomainName + "\\" + session.UserName;
labelSessionId.Text = session.SessionId.ToString();
labelState.Text = session.State.ToString();
if (!string.IsNullOrEmpty(session.ClientName))
labelClientName.Text = session.ClientName;
if (session.ClientAddress != null)
labelClientAddress.Text = session.ClientAddress.ToString();
if (session.ClientDisplay.ColorDepth != 2) // HACK
labelClientDisplayResolution.Text =
session.ClientDisplay.HorizontalResolution + "x" +
session.ClientDisplay.VerticalResolution + "@" +
session.ClientDisplay.ColorDepth;
}
private void buttonClose_Click(object sender, EventArgs e)
{
this.Close();
}
}
}