-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfrmCredentials.cs
More file actions
41 lines (37 loc) · 1.13 KB
/
frmCredentials.cs
File metadata and controls
41 lines (37 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace FIR
{
public partial class frmCredentials : Form
{
private frmCredentials()
{
InitializeComponent();
}
public frmCredentials(string UserName, string Password):this()
{
//this.UserName = UserName;
txtPassword.Text = Password;
txtUser.Text = UserName;
}
string userName;
public string UserName { get{return userName;} /*set;*/ }
string password;
public string Password { get { return password; } /*set;*/ }
private void btnOk_Click(object sender, EventArgs e)
{
password = txtPassword.Text;
userName = txtUser.Text;
this.DialogResult = System.Windows.Forms.DialogResult.OK;
}
private void btnCancel_Click(object sender, EventArgs e)
{
this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
}
}
}