using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.IO;
namespace WindowsApplication31
{
/// <summary>
/// Descrizione di riepilogo per Form1.
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.TextBox o;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TextBox i1;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.PictureBox pictureBox1;
/// <summary>
/// Variabile di progettazione necessaria.
/// </summary>
private System.ComponentModel.Container components = null;
public Form1()
{
//
// 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()
{
System.Resources.
ResourceManager resources
= new System.Resources.
ResourceManager(typeof(Form1
));
this.
i1 = new System.
Windows.
Forms.
TextBox();
this.
o = new System.
Windows.
Forms.
TextBox();
this.
button2 = new System.
Windows.
Forms.
Button();
this.
label1 = new System.
Windows.
Forms.
Label();
this.
label2 = new System.
Windows.
Forms.
Label();
this.
button3 = new System.
Windows.
Forms.
Button();
this.
button1 = new System.
Windows.
Forms.
Button();
this.
button4 = new System.
Windows.
Forms.
Button();
this.
pictureBox1 = new System.
Windows.
Forms.
PictureBox();
this.SuspendLayout();
//
// i1
//
this.
i1.
Font = new System.Drawing.
Font("Comic Sans MS", 8.25F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.i1.ForeColor = System.Drawing.Color.Black;
this.
i1.
Location = new System.Drawing.
Point(16, 56
);
this.i1.Name = "i1";
this.
i1.
Size = new System.Drawing.
Size(280, 23
);
this.i1.TabIndex = 0;
this.i1.Text = "SataNa";
this.
i1.
KeyPress += new System.
Windows.
Forms.
KeyPressEventHandler(this.
i_KeyPress);
this.
i1.
TextChanged += new System.
EventHandler(this.
i_TextChanged);
//
// o
//
this.
o.
Font = new System.Drawing.
Font("Comic Sans MS", 8.25F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.o.ForeColor = System.Drawing.Color.Black;
this.
o.
Location = new System.Drawing.
Point(16, 128
);
this.o.Name = "o";
this.o.ReadOnly = true;
this.
o.
Size = new System.Drawing.
Size(280, 23
);
this.o.TabIndex = 1;
this.o.Text = "§å†åÑå";
this.
o.
KeyPress += new System.
Windows.
Forms.
KeyPressEventHandler(this.
o_KeyPress);
this.
o.
TextChanged += new System.
EventHandler(this.
o_TextChanged);
//
// button2
//
this.
button2.
Font = new System.Drawing.
Font("Comic Sans MS", 9.75F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.button2.ForeColor = System.Drawing.Color.Lime;
this.
button2.
Location = new System.Drawing.
Point(16, 176
);
this.button2.Name = "button2";
this.
button2.
Size = new System.Drawing.
Size(96, 32
);
this.button2.TabIndex = 3;
this.button2.Text = "CaNCeLLa";
this.
button2.
Click += new System.
EventHandler(this.
button2_Click);
//
// label1
//
this.
label1.
Font = new System.Drawing.
Font("Comic Sans MS", 9F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.label1.ForeColor = System.Drawing.Color.Lime;
this.
label1.
Location = new System.Drawing.
Point(16, 16
);
this.label1.Name = "label1";
this.
label1.
Size = new System.Drawing.
Size(96, 16
);
this.label1.TabIndex = 6;
this.label1.Text = "NiCk NoRMaLe";
//
// label2
//
this.
label2.
Font = new System.Drawing.
Font("Comic Sans MS", 9F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.label2.ForeColor = System.Drawing.Color.Lime;
this.
label2.
Location = new System.Drawing.
Point(16, 96
);
this.label2.Name = "label2";
this.
label2.
Size = new System.Drawing.
Size(96, 16
);
this.label2.TabIndex = 7;
this.label2.Text = "NiCk In ASCII";
//
// button3
//
this.
button3.
Font = new System.Drawing.
Font("Comic Sans MS", 9.75F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.button3.ForeColor = System.Drawing.Color.Lime;
this.
button3.
Location = new System.Drawing.
Point(344, 176
);
this.button3.Name = "button3";
this.
button3.
Size = new System.Drawing.
Size(96, 32
);
this.button3.TabIndex = 8;
this.button3.Text = "CoPiA";
this.
button3.
Click += new System.
EventHandler(this.
button3_Click_1);
//
// 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.Lime;
this.
button1.
Location = new System.Drawing.
Point(16, 232
);
this.button1.Name = "button1";
this.
button1.
Size = new System.Drawing.
Size(128, 32
);
this.button1.TabIndex = 9;
this.button1.Text = "DeCoRaZioNi";
this.
button1.
Click += new System.
EventHandler(this.
button1_Click_1);
//
// button4
//
this.
button4.
Font = new System.Drawing.
Font("Comic Sans MS", 9.75F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.button4.ForeColor = System.Drawing.Color.Lime;
this.
button4.
Location = new System.Drawing.
Point(344, 232
);
this.button4.Name = "button4";
this.
button4.
Size = new System.Drawing.
Size(96, 32
);
this.button4.TabIndex = 10;
this.button4.Text = "InFo";
this.
button4.
Click += new System.
EventHandler(this.
button4_Click_1);
//
// pictureBox1
//
this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.
pictureBox1.
Location = new System.Drawing.
Point(312, 8
);
this.pictureBox1.Name = "pictureBox1";
this.
pictureBox1.
Size = new System.Drawing.
Size(136, 128
);
this.pictureBox1.TabIndex = 11;
this.pictureBox1.TabStop = false;
//
// Form1
//
this.
AutoScaleBaseSize = new System.Drawing.
Size(5, 13
);
this.BackColor = System.Drawing.Color.Black;
this.
ClientSize = new System.Drawing.
Size(450, 272
);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.button4);
this.Controls.Add(this.button1);
this.Controls.Add(this.button3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.button2);
this.Controls.Add(this.o);
this.Controls.Add(this.i1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "Form1";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "§å†åÑå Á§Çîî Må|<€R 1.2";
this.
Load += new System.
EventHandler(this.
Form1_Load);
this.ResumeLayout(false);
}
#endregion
/// <summary>
/// Il punto di ingresso principale dell'applicazione.
/// </summary>
[STAThread]
static void Main()
{
Application.
Run(new SplashScreen
());
Application.
Run(new Form1
());
}
private void button1_Click(object sender, System.EventArgs e)
{
}
private void button2_Click(object sender, System.EventArgs e)
{
i1.Text="";
o.Text="";
}
private void button3_Click(object sender, System.EventArgs e)
{
Clipboard.SetDataObject(o.Text);
}
private void o_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
{
if(e.KeyChar==Convert.ToChar(Keys.Clear) || e.KeyChar==Convert.ToChar(Keys.Cancel) || e.KeyChar==Convert.ToChar(Keys.Delete) || e.KeyChar==Convert.ToChar(Keys.Back) || e.KeyChar==Convert.ToChar(Keys.BrowserBack))
return;
switch(e.KeyChar)
{
case 'a': o.Text+="å";break;
case 'b': o.Text+="ß";break;
case 'c': o.Text+="¢";break;
case 'e': o.Text+="€";break;
case 'f': o.Text+="ƒ";break;
case 'h': o.Text+="h";break;
case 'H': o.Text+="][=][";break;
case 'n': o.Text+="ñ";break;
case 'N': o.Text+="Ñ";break;
case 'o': o.Text+="ø";break;
case 'r': o.Text+="®";break;
case 's': o.Text+="$";break;
case 't': o.Text+="†";break;
case 'T': o.Text+="']['";break;
case 'A': o.Text+="Á";break;
case 'B': o.Text+="|8";break;
case 'C': o.Text+="Ç";break;
case 'D': o.Text+="Ð";break;
case 'E': o.Text+="Ê";break;
case 'F': o.Text+="ƒ";break;
case 'I': o.Text+="][";break;
case 'L': o.Text+="]_";break;
case 'M': o.Text+="][V][";break;
case 'O': o.Text+="Ø";break;
case 'S': o.Text+="§";break;
case 'U': o.Text+="Ú";break;
case 'y': o.Text+="ý";break;
case 'Y': o.Text+="Ÿ";break;
case 'K': o.Text+="|<";break;
case 'W': o.Text+="\\X//";break;
default: o.Text+=e.KeyChar.ToString();break;
}
}
private void i_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
{
}
private void button4_Click(object sender, System.EventArgs e)
{
}
private void o_TextChanged(object sender, System.EventArgs e)
{
}
private void button1_Click_1(object sender, System.EventArgs e)
{
f.ShowDialog();
}
private void i_TextChanged(object sender, System.EventArgs e)
{
o.Text="";
for(int i = 0;i<i1.Text.Length;i++)
{
char c = i1.Text[i];
switch(c)
{
case 'a': o.Text+="å";break;
case 'b': o.Text+="ß";break;
case 'c': o.Text+="¢";break;
case 'e': o.Text+="€";break;
case 'f': o.Text+="ƒ";break;
case 'h': o.Text+="h";break;
case 'H': o.Text+="][=][";break;
case 'n': o.Text+="ñ";break;
case 'N': o.Text+="Ñ";break;
case 'o': o.Text+="ø";break;
case 'r': o.Text+="®";break;
case 's': o.Text+="$";break;
case 't': o.Text+="†";break;
case 'T': o.Text+="']['";break;
case 'A': o.Text+="Á";break;
case 'B': o.Text+="|8";break;
case 'C': o.Text+="Ç";break;
case 'D': o.Text+="Ð";break;
case 'E': o.Text+="Ê";break;
case 'F': o.Text+="ƒ";break;
case 'I': o.Text+="][";break;
case 'L': o.Text+="]_";break;
case 'M': o.Text+="][V][";break;
case 'O': o.Text+="Ø";break;
case 'S': o.Text+="§";break;
case 'U': o.Text+="Ú";break;
case 'y': o.Text+="ý";break;
case 'Y': o.Text+="Ÿ";break;
case 'K': o.Text+="|<";break;
case 'W': o.Text+="\\X//";break;
default: o.Text+=c.ToString();break;
}
}
}
private void button4_Click_1(object sender, System.EventArgs e)
{
p.ShowDialog();
}
private void button3_Click_1(object sender, System.EventArgs e)
{
Clipboard.SetDataObject(o.Text);
}
private void Form1_Load(object sender, System.EventArgs e)
{
}
}
}