| using System; |
| using System.Collections.Generic; |
| using System.ComponentModel; |
| using System.Data; |
| using System.Drawing; |
| using System.Text; |
| using System.Windows.Forms; |
| |
| namespace NPanday.VisualStudio.Addin |
| { |
| public partial class LoginForm : Form |
| { |
| public LoginForm() |
| { |
| InitializeComponent(); |
| } |
| |
| private string _username; |
| public string Username |
| { |
| get { return _username; } |
| set { _username = value; } |
| } |
| |
| private string _password; |
| public string Password |
| { |
| get { return _password; } |
| set { _password = value; } |
| } |
| |
| private void btnOk_Click(object sender, EventArgs e) |
| { |
| _username = txtUsername.Text; |
| _password = txtPassword.Text; |
| this.DialogResult = DialogResult.OK; |
| } |
| |
| private void btnCancel_Click(object sender, EventArgs e) |
| { |
| this.DialogResult = DialogResult.Cancel; |
| } |
| } |
| } |