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;
using System.Threading;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
this.Opacity = 0.0;
this.Shown += new EventHandler(Form1_Shown);
}
void Form1_Shown(object sender, EventArgs e)
{
Thread.Sleep(300);
this.Opacity = 1.0;
}
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);
}
void Form2_Shown(object sender, EventArgs e)
{
Thread.Sleep(300);
this.Opacity = 1.0;
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYzsKdXNpbmcgU3lzdGVtLkNvbXBvbmVudE1vZGVsOwp1c2luZyBTeXN0ZW0uRGF0YTsKdXNpbmcgU3lzdGVtLkRyYXdpbmc7CnVzaW5nIFN5c3RlbS5MaW5xOwp1c2luZyBTeXN0ZW0uVGV4dDsKdXNpbmcgU3lzdGVtLldpbmRvd3MuRm9ybXM7CnVzaW5nIFN5c3RlbS5UaHJlYWRpbmc7CgpuYW1lc3BhY2UgV2luZG93c0Zvcm1zQXBwbGljYXRpb24xCnsKICAgIHB1YmxpYyBwYXJ0aWFsIGNsYXNzIEZvcm0xIDogRm9ybQogICAgewogICAgICAgIHB1YmxpYyBGb3JtMSgpCiAgICAgICAgewogICAgICAgICAgICBJbml0aWFsaXplQ29tcG9uZW50KCk7CiAgICAgICAgICAgIHRoaXMuT3BhY2l0eSA9IDAuMDsKICAgICAgICAgICAgdGhpcy5TaG93biArPSBuZXcgRXZlbnRIYW5kbGVyKEZvcm0xX1Nob3duKTsKICAgICAgICB9CgogICAgICAgIHZvaWQgRm9ybTFfU2hvd24ob2JqZWN0IHNlbmRlciwgRXZlbnRBcmdzIGUpCiAgICAgICAgewogICAgICAgICAgICBUaHJlYWQuU2xlZXAoMzAwKTsKICAgICAgICAgICAgdGhpcy5PcGFjaXR5ID0gMS4wOwogICAgICAgIH0KCiAgICAgICAgcHJpdmF0ZSB2b2lkIGJ1dHRvbjFfQ2xpY2sob2JqZWN0IHNlbmRlciwgRXZlbnRBcmdzIGUpCiAgICAgICAgewogICAgICAgICAgICBGb3JtMiBmMiA9IG5ldyBGb3JtMigpOwogICAgICAgICAgICBmMi5TaG93KCk7CiAgICAgICAgfQogICAgfQogICAgcHVibGljIGNsYXNzIEZvcm0yIDogRm9ybQogICAgewogICAgICAgIHB1YmxpYyBGb3JtMigpCiAgICAgICAgewogICAgICAgICAgICB0aGlzLk9wYWNpdHkgPSAwLjA7CiAgICAgICAgICAgIHRoaXMuU2hvd24gKz0gbmV3IEV2ZW50SGFuZGxlcihGb3JtMl9TaG93bik7CiAgICAgICAgICAgIAogICAgICAgIH0KICAgICAgICB2b2lkIEZvcm0yX1Nob3duKG9iamVjdCBzZW5kZXIsIEV2ZW50QXJncyBlKQogICAgICAgIHsKICAgICAgICAgICAgVGhyZWFkLlNsZWVwKDMwMCk7CiAgICAgICAgICAgIHRoaXMuT3BhY2l0eSA9IDEuMDsKICAgICAgICB9CiAgICB9Cn0K