399 lines
11 KiB
C#
399 lines
11 KiB
C#
// Decompiled with JetBrains decompiler
|
|
// Type: Rei.Fs.AuthDialog
|
|
// Assembly: Rei.Fs, Version=1.13.2.8796, Culture=neutral, PublicKeyToken=null
|
|
// MVID: D8B08A8B-697C-4439-9CFF-1BE4EE46F7B0
|
|
// Assembly location: F:\Eigene Dateien\Dropbox\portable Collection\Progs\CarotDAV\Rei.Fs.dll
|
|
|
|
using Microsoft.VisualBasic.CompilerServices;
|
|
using System;
|
|
using System.ComponentModel;
|
|
using System.Diagnostics;
|
|
using System.Drawing;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Rei.Fs
|
|
{
|
|
[DesignerGenerated]
|
|
public class AuthDialog : Form
|
|
{
|
|
private IContainer components;
|
|
[AccessedThroughProperty("RememberCheckBox")]
|
|
private CheckBox _RememberCheckBox;
|
|
[AccessedThroughProperty("Label5")]
|
|
private Label _Label5;
|
|
[AccessedThroughProperty("Label4")]
|
|
private Label _Label4;
|
|
[AccessedThroughProperty("PasswordTextBox")]
|
|
private TextBox _PasswordTextBox;
|
|
[AccessedThroughProperty("UserNameTextBox")]
|
|
private TextBox _UserNameTextBox;
|
|
[AccessedThroughProperty("m_CancelButton")]
|
|
private Button _m_CancelButton;
|
|
[AccessedThroughProperty("ButtonOK")]
|
|
private Button _ButtonOK;
|
|
[AccessedThroughProperty("Label1")]
|
|
private Label _Label1;
|
|
[AccessedThroughProperty("UriTextBox")]
|
|
private TextBox _UriTextBox;
|
|
|
|
public AuthDialog()
|
|
{
|
|
this.Load += new EventHandler(this.AuthDialog_Load);
|
|
this.InitializeComponent();
|
|
}
|
|
|
|
[DebuggerNonUserCode]
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
try
|
|
{
|
|
if (!disposing || this.components == null)
|
|
return;
|
|
this.components.Dispose();
|
|
}
|
|
finally
|
|
{
|
|
base.Dispose(disposing);
|
|
}
|
|
}
|
|
|
|
[DebuggerStepThrough]
|
|
private void InitializeComponent()
|
|
{
|
|
this.RememberCheckBox = new CheckBox();
|
|
this.Label5 = new Label();
|
|
this.Label4 = new Label();
|
|
this.PasswordTextBox = new TextBox();
|
|
this.UserNameTextBox = new TextBox();
|
|
this.m_CancelButton = new Button();
|
|
this.ButtonOK = new Button();
|
|
this.Label1 = new Label();
|
|
this.UriTextBox = new TextBox();
|
|
this.SuspendLayout();
|
|
this.RememberCheckBox.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|
this.RememberCheckBox.AutoSize = true;
|
|
CheckBox rememberCheckBox1 = this.RememberCheckBox;
|
|
Point point1 = new Point(8, 136);
|
|
Point point2 = point1;
|
|
rememberCheckBox1.Location = point2;
|
|
this.RememberCheckBox.Name = "RememberCheckBox";
|
|
CheckBox rememberCheckBox2 = this.RememberCheckBox;
|
|
Size size1 = new Size(214, 16);
|
|
Size size2 = size1;
|
|
rememberCheckBox2.Size = size2;
|
|
this.RememberCheckBox.TabIndex = 8;
|
|
this.RememberCheckBox.Text = "Remember User Name and Password";
|
|
this.RememberCheckBox.UseVisualStyleBackColor = true;
|
|
this.Label5.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|
this.Label5.AutoSize = true;
|
|
Label label5_1 = this.Label5;
|
|
point1 = new Point(8, 88);
|
|
Point point3 = point1;
|
|
label5_1.Location = point3;
|
|
this.Label5.Name = "Label5";
|
|
Label label5_2 = this.Label5;
|
|
size1 = new Size(54, 12);
|
|
Size size3 = size1;
|
|
label5_2.Size = size3;
|
|
this.Label5.TabIndex = 4;
|
|
this.Label5.Text = "Password";
|
|
this.Label4.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|
this.Label4.AutoSize = true;
|
|
Label label4_1 = this.Label4;
|
|
point1 = new Point(8, 48);
|
|
Point point4 = point1;
|
|
label4_1.Location = point4;
|
|
this.Label4.Name = "Label4";
|
|
Label label4_2 = this.Label4;
|
|
size1 = new Size(62, 12);
|
|
Size size4 = size1;
|
|
label4_2.Size = size4;
|
|
this.Label4.TabIndex = 2;
|
|
this.Label4.Text = "User Name";
|
|
this.PasswordTextBox.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
TextBox passwordTextBox1 = this.PasswordTextBox;
|
|
point1 = new Point(8, 104);
|
|
Point point5 = point1;
|
|
passwordTextBox1.Location = point5;
|
|
this.PasswordTextBox.Name = "PasswordTextBox";
|
|
TextBox passwordTextBox2 = this.PasswordTextBox;
|
|
size1 = new Size(272, 19);
|
|
Size size5 = size1;
|
|
passwordTextBox2.Size = size5;
|
|
this.PasswordTextBox.TabIndex = 5;
|
|
this.PasswordTextBox.UseSystemPasswordChar = true;
|
|
this.UserNameTextBox.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
TextBox userNameTextBox1 = this.UserNameTextBox;
|
|
point1 = new Point(8, 64);
|
|
Point point6 = point1;
|
|
userNameTextBox1.Location = point6;
|
|
this.UserNameTextBox.Name = "UserNameTextBox";
|
|
TextBox userNameTextBox2 = this.UserNameTextBox;
|
|
size1 = new Size(272, 19);
|
|
Size size6 = size1;
|
|
userNameTextBox2.Size = size6;
|
|
this.UserNameTextBox.TabIndex = 3;
|
|
this.m_CancelButton.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
|
this.m_CancelButton.DialogResult = DialogResult.Cancel;
|
|
Button mCancelButton1 = this.m_CancelButton;
|
|
point1 = new Point(208, 160);
|
|
Point point7 = point1;
|
|
mCancelButton1.Location = point7;
|
|
this.m_CancelButton.Name = "m_CancelButton";
|
|
Button mCancelButton2 = this.m_CancelButton;
|
|
size1 = new Size(72, 24);
|
|
Size size7 = size1;
|
|
mCancelButton2.Size = size7;
|
|
this.m_CancelButton.TabIndex = 10;
|
|
this.m_CancelButton.Text = "Cancel";
|
|
this.m_CancelButton.UseVisualStyleBackColor = true;
|
|
this.ButtonOK.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
|
Button buttonOk1 = this.ButtonOK;
|
|
point1 = new Point(128, 160);
|
|
Point point8 = point1;
|
|
buttonOk1.Location = point8;
|
|
this.ButtonOK.Name = "ButtonOK";
|
|
Button buttonOk2 = this.ButtonOK;
|
|
size1 = new Size(72, 24);
|
|
Size size8 = size1;
|
|
buttonOk2.Size = size8;
|
|
this.ButtonOK.TabIndex = 9;
|
|
this.ButtonOK.Text = "OK";
|
|
this.ButtonOK.UseVisualStyleBackColor = true;
|
|
this.Label1.AutoSize = true;
|
|
Label label1_1 = this.Label1;
|
|
point1 = new Point(8, 8);
|
|
Point point9 = point1;
|
|
label1_1.Location = point9;
|
|
this.Label1.Name = "Label1";
|
|
Label label1_2 = this.Label1;
|
|
size1 = new Size(90, 12);
|
|
Size size9 = size1;
|
|
label1_2.Size = size9;
|
|
this.Label1.TabIndex = 0;
|
|
this.Label1.Text = "Authorization for";
|
|
this.UriTextBox.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
TextBox uriTextBox1 = this.UriTextBox;
|
|
point1 = new Point(8, 24);
|
|
Point point10 = point1;
|
|
uriTextBox1.Location = point10;
|
|
this.UriTextBox.Multiline = true;
|
|
this.UriTextBox.Name = "UriTextBox";
|
|
this.UriTextBox.ReadOnly = true;
|
|
TextBox uriTextBox2 = this.UriTextBox;
|
|
size1 = new Size(272, 19);
|
|
Size size10 = size1;
|
|
uriTextBox2.Size = size10;
|
|
this.UriTextBox.TabIndex = 1;
|
|
this.UriTextBox.TabStop = false;
|
|
this.AcceptButton = (IButtonControl) this.ButtonOK;
|
|
this.AutoScaleDimensions = new SizeF(6f, 12f);
|
|
this.AutoScaleMode = AutoScaleMode.Font;
|
|
this.CancelButton = (IButtonControl) this.m_CancelButton;
|
|
size1 = new Size(288, 192);
|
|
this.ClientSize = size1;
|
|
this.Controls.Add((Control) this.UriTextBox);
|
|
this.Controls.Add((Control) this.Label1);
|
|
this.Controls.Add((Control) this.m_CancelButton);
|
|
this.Controls.Add((Control) this.ButtonOK);
|
|
this.Controls.Add((Control) this.RememberCheckBox);
|
|
this.Controls.Add((Control) this.Label5);
|
|
this.Controls.Add((Control) this.Label4);
|
|
this.Controls.Add((Control) this.PasswordTextBox);
|
|
this.Controls.Add((Control) this.UserNameTextBox);
|
|
size1 = new Size(304, 229);
|
|
this.MinimumSize = size1;
|
|
this.Name = nameof (AuthDialog);
|
|
this.StartPosition = FormStartPosition.CenterParent;
|
|
this.Text = "Authorization";
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
}
|
|
|
|
internal virtual CheckBox RememberCheckBox
|
|
{
|
|
get
|
|
{
|
|
return this._RememberCheckBox;
|
|
}
|
|
[MethodImpl(MethodImplOptions.Synchronized)] set
|
|
{
|
|
this._RememberCheckBox = value;
|
|
}
|
|
}
|
|
|
|
internal virtual Label Label5
|
|
{
|
|
get
|
|
{
|
|
return this._Label5;
|
|
}
|
|
[MethodImpl(MethodImplOptions.Synchronized)] set
|
|
{
|
|
this._Label5 = value;
|
|
}
|
|
}
|
|
|
|
internal virtual Label Label4
|
|
{
|
|
get
|
|
{
|
|
return this._Label4;
|
|
}
|
|
[MethodImpl(MethodImplOptions.Synchronized)] set
|
|
{
|
|
this._Label4 = value;
|
|
}
|
|
}
|
|
|
|
internal virtual TextBox PasswordTextBox
|
|
{
|
|
get
|
|
{
|
|
return this._PasswordTextBox;
|
|
}
|
|
[MethodImpl(MethodImplOptions.Synchronized)] set
|
|
{
|
|
this._PasswordTextBox = value;
|
|
}
|
|
}
|
|
|
|
internal virtual TextBox UserNameTextBox
|
|
{
|
|
get
|
|
{
|
|
return this._UserNameTextBox;
|
|
}
|
|
[MethodImpl(MethodImplOptions.Synchronized)] set
|
|
{
|
|
this._UserNameTextBox = value;
|
|
}
|
|
}
|
|
|
|
internal virtual Button m_CancelButton
|
|
{
|
|
get
|
|
{
|
|
return this._m_CancelButton;
|
|
}
|
|
[MethodImpl(MethodImplOptions.Synchronized)] set
|
|
{
|
|
this._m_CancelButton = value;
|
|
}
|
|
}
|
|
|
|
internal virtual Button ButtonOK
|
|
{
|
|
get
|
|
{
|
|
return this._ButtonOK;
|
|
}
|
|
[MethodImpl(MethodImplOptions.Synchronized)] set
|
|
{
|
|
EventHandler eventHandler = new EventHandler(this.ButtonOK_Click);
|
|
if (this._ButtonOK != null)
|
|
this._ButtonOK.Click -= eventHandler;
|
|
this._ButtonOK = value;
|
|
if (this._ButtonOK == null)
|
|
return;
|
|
this._ButtonOK.Click += eventHandler;
|
|
}
|
|
}
|
|
|
|
internal virtual Label Label1
|
|
{
|
|
get
|
|
{
|
|
return this._Label1;
|
|
}
|
|
[MethodImpl(MethodImplOptions.Synchronized)] set
|
|
{
|
|
this._Label1 = value;
|
|
}
|
|
}
|
|
|
|
internal virtual TextBox UriTextBox
|
|
{
|
|
get
|
|
{
|
|
return this._UriTextBox;
|
|
}
|
|
[MethodImpl(MethodImplOptions.Synchronized)] set
|
|
{
|
|
this._UriTextBox = value;
|
|
}
|
|
}
|
|
|
|
public string Target
|
|
{
|
|
get
|
|
{
|
|
return this.UriTextBox.Text;
|
|
}
|
|
set
|
|
{
|
|
this.UriTextBox.Text = value;
|
|
}
|
|
}
|
|
|
|
public string UserName
|
|
{
|
|
get
|
|
{
|
|
return this.UserNameTextBox.Text;
|
|
}
|
|
set
|
|
{
|
|
this.UserNameTextBox.Text = value;
|
|
}
|
|
}
|
|
|
|
public string Password
|
|
{
|
|
get
|
|
{
|
|
return this.PasswordTextBox.Text;
|
|
}
|
|
set
|
|
{
|
|
this.PasswordTextBox.Text = value;
|
|
}
|
|
}
|
|
|
|
public bool ShowRememberCheckBox
|
|
{
|
|
get
|
|
{
|
|
return this.RememberCheckBox.Visible;
|
|
}
|
|
set
|
|
{
|
|
this.RememberCheckBox.Visible = value;
|
|
}
|
|
}
|
|
|
|
public bool Remember
|
|
{
|
|
get
|
|
{
|
|
return this.RememberCheckBox.Checked;
|
|
}
|
|
set
|
|
{
|
|
this.RememberCheckBox.Checked = value;
|
|
}
|
|
}
|
|
|
|
private void ButtonOK_Click(object sender, EventArgs e)
|
|
{
|
|
this.DialogResult = DialogResult.OK;
|
|
}
|
|
|
|
private void AuthDialog_Load(object sender, EventArgs e)
|
|
{
|
|
this.Icon = Rei.Fs.My.Resources.Resources.security;
|
|
}
|
|
}
|
|
}
|