add feedback

This commit is contained in:
clowwindy
2015-01-12 03:06:21 +08:00
parent de0f752cc8
commit d995169fec
3 changed files with 241 additions and 0 deletions
+64
View File
@@ -0,0 +1,64 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace Shadowsocks.View
{
public partial class QRCodeSplashForm : Form
{
public QRCodeSplashForm()
{
InitializeComponent();
}
private Timer timer;
private int step;
private void QRCodeSplashForm_Load(object sender, EventArgs e)
{
step = 0;
timer = new Timer();
timer.Interval = 300;
timer.Tick += timer_Tick;
timer.Start();
}
void timer_Tick(object sender, EventArgs e)
{
timer.Interval = 40;
if (step == 0)
{
this.Opacity = 0;
}
else if (step == 1)
{
this.Opacity = 0.3;
}
else if (step == 1)
{
this.Opacity = 0.0;
}
else if (step == 2)
{
this.Opacity = 0.3;
}
else if (step == 3)
{
this.Opacity = 0.0;
}
else if (step == 4)
{
this.Opacity = 0.3;
}
else
{
this.Close();
}
step++;
}
}
}