mirror of
https://github.com/dgis/xsddiagram.git
synced 2024-10-26 18:49:35 +03:00
f2aa5b469a
- Prompt the user to authenticate when the xsd dependencies (import or include) point toward a secured url.
37 lines
921 B
C#
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);
|
|
}
|
|
}
|
|
}
|