| 2151 |
ghuddy |
1 |
using System;
|
|
|
2 |
using System.Collections;
|
|
|
3 |
using System.ComponentModel;
|
|
|
4 |
using System.Data;
|
|
|
5 |
using System.Drawing;
|
|
|
6 |
using System.Text;
|
|
|
7 |
using System.Windows.Forms;
|
|
|
8 |
|
|
|
9 |
namespace EA_ReqPro
|
|
|
10 |
{
|
|
|
11 |
public class Logon : Form
|
|
|
12 |
{
|
|
|
13 |
|
|
|
14 |
public Logon(string username)
|
|
|
15 |
{
|
|
|
16 |
InitializeComponent();
|
|
|
17 |
ebUserName.Text = username;
|
|
|
18 |
}
|
|
|
19 |
|
|
|
20 |
private void ebUserName_TextChanged(object sender, EventArgs e)
|
|
|
21 |
{
|
|
|
22 |
|
|
|
23 |
}
|
|
|
24 |
/// <summary>
|
|
|
25 |
/// Required designer variable.
|
|
|
26 |
/// </summary>
|
|
|
27 |
private System.ComponentModel.IContainer components = null;
|
|
|
28 |
|
|
|
29 |
/// <summary>
|
|
|
30 |
/// Clean up any resources being used.
|
|
|
31 |
/// </summary>
|
|
|
32 |
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
|
33 |
protected override void Dispose(bool disposing)
|
|
|
34 |
{
|
|
|
35 |
if (disposing && (components != null))
|
|
|
36 |
{
|
|
|
37 |
components.Dispose();
|
|
|
38 |
}
|
|
|
39 |
base.Dispose(disposing);
|
|
|
40 |
}
|
|
|
41 |
|
|
|
42 |
#region Windows Form Designer generated code
|
|
|
43 |
|
|
|
44 |
/// <summary>
|
|
|
45 |
/// Required method for Designer support - do not modify
|
|
|
46 |
/// the contents of this method with the code editor.
|
|
|
47 |
/// </summary>
|
|
|
48 |
private void InitializeComponent()
|
|
|
49 |
{
|
| 2139 |
ghuddy |
50 |
this.label1 = new System.Windows.Forms.Label();
|
|
|
51 |
this.label2 = new System.Windows.Forms.Label();
|
|
|
52 |
this.ebUserName = new System.Windows.Forms.TextBox();
|
|
|
53 |
this.ebPassword = new System.Windows.Forms.TextBox();
|
|
|
54 |
this.btOk = new System.Windows.Forms.Button();
|
|
|
55 |
this.btCancel = new System.Windows.Forms.Button();
|
|
|
56 |
this.SuspendLayout();
|
|
|
57 |
//
|
|
|
58 |
// label1
|
|
|
59 |
//
|
|
|
60 |
this.label1.AutoSize = true;
|
|
|
61 |
this.label1.Location = new System.Drawing.Point(8, 24);
|
|
|
62 |
this.label1.Name = "label1";
|
|
|
63 |
this.label1.Size = new System.Drawing.Size(67, 18);
|
|
|
64 |
this.label1.TabIndex = 0;
|
|
|
65 |
this.label1.Text = "Username";
|
|
|
66 |
//
|
|
|
67 |
// label2
|
|
|
68 |
//
|
|
|
69 |
this.label2.AutoSize = true;
|
|
|
70 |
this.label2.Location = new System.Drawing.Point(8, 56);
|
|
|
71 |
this.label2.Name = "label2";
|
|
|
72 |
this.label2.Size = new System.Drawing.Size(64, 18);
|
|
|
73 |
this.label2.TabIndex = 1;
|
|
|
74 |
this.label2.Text = "Password";
|
|
|
75 |
//
|
|
|
76 |
// ebUserName
|
|
|
77 |
//
|
|
|
78 |
this.ebUserName.Location = new System.Drawing.Point(96, 16);
|
|
|
79 |
this.ebUserName.Name = "ebUserName";
|
|
|
80 |
this.ebUserName.Size = new System.Drawing.Size(237, 22);
|
|
|
81 |
this.ebUserName.TabIndex = 2;
|
|
|
82 |
this.ebUserName.Text = "";
|
|
|
83 |
this.ebUserName.TextChanged += new System.EventHandler(this.ebUserName_TextChanged);
|
|
|
84 |
//
|
|
|
85 |
// ebPassword
|
|
|
86 |
//
|
|
|
87 |
this.ebPassword.Location = new System.Drawing.Point(96, 48);
|
|
|
88 |
this.ebPassword.Name = "ebPassword";
|
| 2151 |
ghuddy |
89 |
this.ebPassword.PasswordChar = '*';
|
| 2139 |
ghuddy |
90 |
this.ebPassword.Size = new System.Drawing.Size(237, 22);
|
|
|
91 |
this.ebPassword.TabIndex = 3;
|
|
|
92 |
this.ebPassword.Text = "";
|
|
|
93 |
//
|
|
|
94 |
// btOk
|
|
|
95 |
//
|
|
|
96 |
this.btOk.DialogResult = System.Windows.Forms.DialogResult.OK;
|
| 2155 |
ghuddy |
97 |
this.btOk.Location = new System.Drawing.Point(160, 96);
|
| 2139 |
ghuddy |
98 |
this.btOk.Name = "btOk";
|
|
|
99 |
this.btOk.TabIndex = 6;
|
|
|
100 |
this.btOk.Text = "Ok";
|
|
|
101 |
//
|
|
|
102 |
// btCancel
|
|
|
103 |
//
|
|
|
104 |
this.btCancel.DialogResult = System.Windows.Forms.DialogResult.Abort;
|
| 2155 |
ghuddy |
105 |
this.btCancel.Location = new System.Drawing.Point(256, 96);
|
| 2139 |
ghuddy |
106 |
this.btCancel.Name = "btCancel";
|
|
|
107 |
this.btCancel.TabIndex = 7;
|
|
|
108 |
this.btCancel.Text = "Cancel";
|
|
|
109 |
//
|
|
|
110 |
// Logon
|
|
|
111 |
//
|
|
|
112 |
this.AcceptButton = this.btOk;
|
|
|
113 |
this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
|
|
|
114 |
this.CancelButton = this.btCancel;
|
| 2155 |
ghuddy |
115 |
this.ClientSize = new System.Drawing.Size(346, 138);
|
| 2139 |
ghuddy |
116 |
this.ControlBox = false;
|
|
|
117 |
this.Controls.Add(this.btCancel);
|
|
|
118 |
this.Controls.Add(this.btOk);
|
|
|
119 |
this.Controls.Add(this.ebPassword);
|
|
|
120 |
this.Controls.Add(this.ebUserName);
|
|
|
121 |
this.Controls.Add(this.label2);
|
|
|
122 |
this.Controls.Add(this.label1);
|
| 2151 |
ghuddy |
123 |
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
| 2139 |
ghuddy |
124 |
this.Name = "Logon";
|
| 2151 |
ghuddy |
125 |
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
|
| 2155 |
ghuddy |
126 |
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
| 2139 |
ghuddy |
127 |
this.Text = "ReqPro Database Login";
|
| 2151 |
ghuddy |
128 |
this.TopMost = true;
|
| 2139 |
ghuddy |
129 |
this.Load += new System.EventHandler(this.Logon_Load);
|
|
|
130 |
this.ResumeLayout(false);
|
|
|
131 |
|
| 2151 |
ghuddy |
132 |
}
|
|
|
133 |
|
|
|
134 |
#endregion
|
|
|
135 |
|
|
|
136 |
private System.Windows.Forms.Label label1;
|
|
|
137 |
private System.Windows.Forms.Label label2;
|
|
|
138 |
private System.Windows.Forms.Button btOk;
|
|
|
139 |
private System.Windows.Forms.Button btCancel;
|
|
|
140 |
public System.Windows.Forms.TextBox ebUserName;
|
| 2139 |
ghuddy |
141 |
public System.Windows.Forms.TextBox ebPassword;
|
|
|
142 |
|
|
|
143 |
private void Logon_Load(object sender, System.EventArgs e)
|
|
|
144 |
{
|
|
|
145 |
|
| 2151 |
ghuddy |
146 |
}
|
|
|
147 |
}
|
| 2139 |
ghuddy |
148 |
}
|