| 0: | // PasswordAuthentificationDialog.cs | |
| 1: | // Copyright (C) 2000 Mike Krueger | |
| 2: | // | |
| 3: | // This program is free software; you can redistribute it and/or | |
| 4: | // modify it under the terms of the GNU General Public License | |
| 5: | // as published by the Free Software Foundation; either version 2 | |
| 6: | // of the License, or any later version. | |
| 7: | // | |
| 8: | // This program is distributed in the hope that it will be useful, | |
| 9: | // but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 10: | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 11: | // GNU General Public License for more details. | |
| 12: | // | |
| 13: | // You should have received a copy of the GNU General Public License | |
| 14: | // along with this program; if not, write to the Free Software | |
| 15: | // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
| 16: | ||
| 17: | using System; | |
| 18: | using System.Drawing; | |
| 19: | using System.Collections; | |
| 20: | using System.ComponentModel; | |
| 21: | using System.Windows.Forms; | |
| 22: | using System.Data; | |
| 23: | ||
| 24: | namespace SharpDevelop.Gui.Dialogs { | |
| 25: | ||
| 26: | public class PasswordAuthentificationDialog : System.Windows.Forms.Form | |
| 27: | { | |
| 28: | private System.Windows.Forms.FontDialog fontDialog1; | |
| 29: | private System.Windows.Forms.GroupBox groupBox1; | |
| 30: | private System.Windows.Forms.Label label1; | |
| 31: | private System.Windows.Forms.Button okButton; | |
| 32: | private System.Windows.Forms.Button cancelButton; | |
| 33: | private System.Windows.Forms.TextBox textBox1; | |
| 34: | ||
| 35: | public string Password { | |
| 36: | get { | |
| 37: | return textBox1.Text; | |
| 38: | } | |
| 39: | } | |
| 40: | ||
| 41: | public PasswordAuthentificationDialog(string labeltext) | |
| 42: | { | |
| 43: | InitializeComponent(); | |
| 44: | label1.Text = labeltext; | |
| 45: | } | |
| 46: | ||
| 47: | private void InitializeComponent() | |
| 48: | { | |
| 49: | this.fontDialog1 = new System.Windows.Forms.FontDialog(); | |
| 50: | this.groupBox1 = new System.Windows.Forms.GroupBox(); | |
| 51: | this.label1 = new System.Windows.Forms.Label(); | |
| 52: | this.okButton = new System.Windows.Forms.Button(); | |
| 53: | this.cancelButton = new System.Windows.Forms.Button(); | |
| 54: | this.textBox1 = new System.Windows.Forms.TextBox(); | |
| 55: | this.groupBox1.SuspendLayout(); | |
| 56: | this.SuspendLayout(); | |
| 57: | ||
| 58: | this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {this.textBox1}); | |
| 59: | this.groupBox1.Location = new System.Drawing.Point(8, 32); | |
| 60: | this.groupBox1.Size = new System.Drawing.Size(280, 48); | |
| 61: | this.groupBox1.TabIndex = 0; | |
| 62: | this.groupBox1.TabStop = false; | |
| 63: | this.groupBox1.Text = "enter your password :"; | |
| 64: | // | |
| 65: | // label1 | |
| 66: | // | |
| 67: | this.label1.Location = new System.Drawing.Point(8, 8); | |
| 68: | this.label1.Size = new System.Drawing.Size(288, 24); | |
| 69: | this.label1.TabIndex = 1; | |
| 70: | this.label1.Text = "label1"; | |
| 71: | // | |
| 72: | // okButton | |
| 73: | // | |
| 74: | this.okButton.Location = new System.Drawing.Point(136, 88); | |
| 75: | this.okButton.TabIndex = 2; | |
| 76: | this.okButton.Text = "OK"; | |
| 77: | this.okButton.DialogResult = DialogResult.OK; | |
| 78: | // | |
| 79: | // cancelButton | |
| 80: | // | |
| 81: | this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; | |
| 82: | this.cancelButton.Location = new System.Drawing.Point(216, 88); | |
| 83: | this.cancelButton.TabIndex = 3; | |
| 84: | this.cancelButton.Text = "Cancel"; | |
| 85: | this.cancelButton.DialogResult = DialogResult.Cancel; | |
| 86: | ||
| 87: | // | |
| 88: | // textBox1 | |
| 89: | // | |
| 90: | this.textBox1.Location = new System.Drawing.Point(8, 16); | |
| 91: | this.textBox1.PasswordChar = '*'; | |
| 92: | this.textBox1.Size = new System.Drawing.Size(264, 20); | |
| 93: | this.textBox1.TabIndex = 0; | |
| 94: | ||
| 95: | // | |
| 96: | // Form2 | |
| 97: | // | |
| 98: | this.AcceptButton = this.okButton; | |
| 99: | this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); | |
| 100: | this.CancelButton = this.cancelButton; | |
| 101: | this.ClientSize = new System.Drawing.Size(298, 119); | |
| 102: | this.Controls.AddRange(new System.Windows.Forms.Control[] { this.cancelButton, | |
| 103: | this.okButton, | |
| 104: | this.label1, | |
| 105: | this.groupBox1}); | |
| 106: | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; | |
| 107: | this.MaximizeBox = MinimizeBox = false; | |
| 108: | this.Icon = null; | |
| 109: | this.ShowInTaskbar = false; | |
| 110: | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; | |
| 111: | this.Text = "Password Authentification"; | |
| 112: | this.groupBox1.ResumeLayout(false); | |
| 113: | this.ResumeLayout(false); | |
| 114: | ||
| 115: | } | |
| 116: | } | |
| 117: | } |
This page was automatically generated by SharpDevelop.