using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace CoLoRi2
{
/// <summary>
/// Descrizione di riepilogo per Form1.
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.Label a1;
private System.Windows.Forms.Label b1;
private System.ComponentModel.IContainer components;
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()
{
this.
components = new System.ComponentModel.
Container();
this.
a1 = new System.
Windows.
Forms.
Label();
this.
b1 = new System.
Windows.
Forms.
Label();
this.
timer1 = new System.
Windows.
Forms.
Timer(this.
components);
this.SuspendLayout();
//
// a1
//
this.
a1.
Font = new System.Drawing.
Font("Comic Sans MS", 36F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.
a1.
Location = new System.Drawing.
Point(8, 0
);
this.a1.Name = "a1";
this.
a1.
Size = new System.Drawing.
Size(272, 72
);
this.a1.TabIndex = 0;
this.a1.Text = "PieRoToFy";
this.a1.Visible = false;
//
// b1
//
this.
b1.
Font = new System.Drawing.
Font("Comic Sans MS", 36F,
System.Drawing.
FontStyle.
Regular,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.
b1.
Location = new System.Drawing.
Point(88, 64
);
this.b1.Name = "b1";
this.
b1.
Size = new System.Drawing.
Size(176, 56
);
this.b1.TabIndex = 1;
this.b1.Text = ".It";
this.b1.Visible = false;
//
// timer1
//
this.
timer1.
Tick += new System.
EventHandler(this.
timer1_Tick);
//
// Form1
//
this.
AutoScaleBaseSize = new System.Drawing.
Size(5, 13
);
this.
ClientSize = new System.Drawing.
Size(288, 126
);
this.Controls.Add(this.b1);
this.Controls.Add(this.a1);
this.MaximizeBox = false;
this.Name = "Form1";
this.Text = "CoLoRi2 By SaTaNa";
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 Form1
());
}
private void Form1_Load(object sender, System.EventArgs e)
{
timer1.Start();
}
private void timer1_Tick(object sender, System.EventArgs e)
{
a1.Visible=true;
b1.Visible=true;
int a,b,c;
a=rnd.Next(255);
b=rnd.Next(255);
c=rnd.Next(255);
a1.ForeColor=Color.FromArgb(a,b,c);
b1.ForeColor=a1.ForeColor;
}
}
}