/*********************************************************************************************
* Copyright 2004 - Volian Enterprises, Inc. All rights reserved.
* Volian Enterprises - Proprietary Information - DO NOT COPY OR DISTRIBUTE
* ------------------------------------------------------------------------------
* $Workfile: MonUsrDlg.cs $ $Revision: 1 $
* $Author: Kathy $ $Date: 7/27/04 8:44a $
*
* $History: MonUsrDlg.cs $
*
* ***************** Version 1 *****************
* User: Kathy Date: 7/27/04 Time: 8:44a
* Created in $/LibSource/VENetwork
*********************************************************************************************/
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using Utils;
namespace VENetwork
{
///
/// Summary description for MonUsrDlg.
///
public class MonUsrDlg : System.Windows.Forms.Form
{
///
/// Required designer variable.
///
private System.ComponentModel.Container components = null;
private System.Windows.Forms.ListView lvUsers;
private System.Windows.Forms.Button button1;
private string [] SLockTypes = {"System", "Plant", "Procedure Set"};
public MonUsrDlg(ArrayList usr, int ilb)
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
this.Text = SLockTypes[ilb] + " : Monitor Users";
DoListView(usr);
}
private void DoListView(ArrayList usrlst)
{
ListViewItem item=null;
lvUsers.Columns.Add("User Network ID",100, HorizontalAlignment.Left);
lvUsers.Columns.Add("User Phone",100, HorizontalAlignment.Left);
lvUsers.Columns.Add("User Name",200, HorizontalAlignment.Left);
for (int i=0; i
/// Clean up any resources being used.
///
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MonUsrDlg));
this.lvUsers = new System.Windows.Forms.ListView();
this.button1 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// lvUsers
//
this.lvUsers.Location = new System.Drawing.Point(0, 0);
this.lvUsers.Name = "lvUsers";
this.lvUsers.Size = new System.Drawing.Size(400, 224);
this.lvUsers.TabIndex = 0;
this.lvUsers.View = System.Windows.Forms.View.Details;
//
// button1
//
this.button1.DialogResult = System.Windows.Forms.DialogResult.OK;
this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.button1.Location = new System.Drawing.Point(176, 232);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(64, 24);
this.button1.TabIndex = 1;
this.button1.Text = "OK";
//
// MonUsrDlg
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(400, 266);
this.Controls.Add(this.button1);
this.Controls.Add(this.lvUsers);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "MonUsrDlg";
this.Text = "Monitor Users";
this.ResumeLayout(false);
}
#endregion
}
}