using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Form2 f2 = new Form2();
f2.Show();
}
}
public class Form2 : Form
{
public Form2()
{
this.Opacity = 0.0;
this.Shown += new EventHandler(Form2_Shown);
}
Timer t = new Timer();
void Form2_Shown(object sender, EventArgs e)
{
t.Tick += new EventHandler(t_Tick);
t.Interval = 100;
t.Enabled = true;
}
void t_Tick(object sender, EventArgs e)
{
t.Enabled = false;
this.Opacity = 1.0;
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYzsKdXNpbmcgU3lzdGVtLkNvbXBvbmVudE1vZGVsOwp1c2luZyBTeXN0ZW0uRGF0YTsKdXNpbmcgU3lzdGVtLkRyYXdpbmc7CnVzaW5nIFN5c3RlbS5MaW5xOwp1c2luZyBTeXN0ZW0uVGV4dDsKdXNpbmcgU3lzdGVtLldpbmRvd3MuRm9ybXM7CgpuYW1lc3BhY2UgV2luZG93c0Zvcm1zQXBwbGljYXRpb24xCnsKICAgIHB1YmxpYyBwYXJ0aWFsIGNsYXNzIEZvcm0xIDogRm9ybQogICAgewogICAgICAgIHB1YmxpYyBGb3JtMSgpCiAgICAgICAgewogICAgICAgICAgICBJbml0aWFsaXplQ29tcG9uZW50KCk7CiAgICAgICAgfQoKICAgICAgICBwcml2YXRlIHZvaWQgYnV0dG9uMV9DbGljayhvYmplY3Qgc2VuZGVyLCBFdmVudEFyZ3MgZSkKICAgICAgICB7CiAgICAgICAgICAgIEZvcm0yIGYyID0gbmV3IEZvcm0yKCk7CiAgICAgICAgICAgIGYyLlNob3coKTsKICAgICAgICB9CiAgICB9CiAgICBwdWJsaWMgY2xhc3MgRm9ybTIgOiBGb3JtCiAgICB7CiAgICAgICAgcHVibGljIEZvcm0yKCkKICAgICAgICB7CiAgICAgICAgICAgIHRoaXMuT3BhY2l0eSA9IDAuMDsKICAgICAgICAgICAgdGhpcy5TaG93biArPSBuZXcgRXZlbnRIYW5kbGVyKEZvcm0yX1Nob3duKTsKICAgICAgICB9CiAgICAgICAgVGltZXIgdCA9IG5ldyBUaW1lcigpOwogICAgICAgIHZvaWQgRm9ybTJfU2hvd24ob2JqZWN0IHNlbmRlciwgRXZlbnRBcmdzIGUpCiAgICAgICAgewogICAgICAgICAgICB0LlRpY2sgKz0gbmV3IEV2ZW50SGFuZGxlcih0X1RpY2spOwogICAgICAgICAgICB0LkludGVydmFsID0gMTAwOwogICAgICAgICAgICB0LkVuYWJsZWQgPSB0cnVlOwogICAgICAgIH0KCiAgICAgICAgdm9pZCB0X1RpY2sob2JqZWN0IHNlbmRlciwgRXZlbnRBcmdzIGUpCiAgICAgICAgewogICAgICAgICAgICB0LkVuYWJsZWQgPSBmYWxzZTsKICAgICAgICAgICAgdGhpcy5PcGFjaXR5ID0gMS4wOwogICAgICAgIH0KICAgIH0KfQo=