1
1
mirror of https://github.com/dgis/xsddiagram.git synced 2024-09-11 10:36:24 +03:00
xsddiagram/LoginPromptForm.cs
dgis f2aa5b469a - Accept all kind of https certificates when the xsd dependencies (import or include) point to a TLS/SSL url.
- Prompt the user to authenticate when the xsd dependencies (import or include) point toward a secured url.
2012-12-01 13:25:26 +01:00

37 lines
921 B
C#

using System;
using System.Windows.Forms;
namespace XSDDiagram
{
public partial class LoginPromptForm : Form
{
public LoginPromptForm(string label)
{
InitializeComponent();
this.textBoxLabel.Text = label;
}
public string Username { get; set; }
public string Password { get; set; }
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
this.textBoxUsername.Text = Username;
this.textBoxPassword.Text = Password;
}
protected override void OnClosed(EventArgs e)
{
if (this.DialogResult == System.Windows.Forms.DialogResult.OK)
{
Username = this.textBoxUsername.Text;
Password = this.textBoxPassword.Text;
}
base.OnClosed(e);
}
}
}