using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace SaTaNaRiKPaSS
{
/// <summary>
/// Descrizione di riepilogo per Pass.
/// </summary>
public class Pass : System.Windows.Forms.Form
{
private System.Windows.Forms.TextBox P;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label1;
/// <summary>
/// Variabile di progettazione necessaria.
/// </summary>
private System.ComponentModel.Container components = null;
public Pass()
{
//
// Necessario per il supporto di Progettazione Windows Form
//
InitializeComponent();
//
// TODO: aggiungere il codice del costruttore dopo la chiamata a InitializeComponent
//
}
/// <summary>
/// Pulire le risorse in uso.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Codice generato da Progettazione Windows Form
/// <summary>
/// Metodo necessario per il supporto della finestra di progettazione. Non modificare
/// il contenuto del metodo con l'editor di codice.
/// </summary>
private void InitializeComponent()
{
this.
P = new System.
Windows.
Forms.
TextBox();
this.
button1 = new System.
Windows.
Forms.
Button();
this.
label1 = new System.
Windows.
Forms.
Label();
this.SuspendLayout();
//
// P
//
this.
P.
Font = new System.Drawing.
Font("Comic Sans MS", 8.25F,
System.Drawing.
FontStyle.
Regular,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.
P.
Location = new System.Drawing.
Point(16, 32
);
this.P.Name = "P";
this.
P.
Size = new System.Drawing.
Size(264, 23
);
this.P.TabIndex = 0;
this.P.Text = "";
//
// button1
//
this.
button1.
Font = new System.Drawing.
Font("Comic Sans MS", 9.75F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.button1.ForeColor = System.Drawing.Color.Red;
this.
button1.
Location = new System.Drawing.
Point(96, 64
);
this.button1.Name = "button1";
this.
button1.
Size = new System.Drawing.
Size(104, 24
);
this.button1.TabIndex = 1;
this.button1.Text = "Ok";
this.
button1.
Click += new System.
EventHandler(this.
button1_Click);
//
// label1
//
this.
label1.
Font = new System.Drawing.
Font("Comic Sans MS", 8.25F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.label1.ForeColor = System.Drawing.Color.Red;
this.
label1.
Location = new System.Drawing.
Point(16, 8
);
this.label1.Name = "label1";
this.
label1.
Size = new System.Drawing.
Size(264, 16
);
this.label1.TabIndex = 2;
this.label1.Text = "Inserisci Password";
//
// Pass
//
this.
AutoScaleBaseSize = new System.Drawing.
Size(5, 13
);
this.BackColor = System.Drawing.Color.Black;
this.
ClientSize = new System.Drawing.
Size(292, 94
);
this.ControlBox = false;
this.Controls.Add(this.label1);
this.Controls.Add(this.button1);
this.Controls.Add(this.P);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "Pass";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Password Autorizzazione By SaTaNa";
this.ResumeLayout(false);
}
#endregion
private void button1_Click(object sender, System.EventArgs e)
{
string password=P.Text;
if (password=="SaTaNaGoD")
{
f.ShowDialog();
Close();
}
else
{
MessageBox.Show("Password Errata!","Error",MessageBoxButtons.OK,MessageBoxIcon.Error);
P.Text="";
return;
}
}
}
}