Exemple #1
0
        private void ShowForm()
        {
            double t = 0.1;

            while (true)
            {
                if (this.InvokeRequired)
                {
                    SetForm d = delegate(double value)
                    {
                        this.Opacity = value;
                    };
                    this.Invoke(d, new object[1] {
                        t
                    });
                }
                else
                {
                    this.Opacity = t;
                }
                t += 0.1;
                Delay(150);
                if (this.Opacity == 1.0)
                {
                    break;
                }
            }
        }
Exemple #2
0
        private void ShowForm()
        {
            double t = 0.1;

            while (true)
            {
                if (this.InvokeRequired)
                {
                    SetForm d = delegate(double value)
                    {
                        this.Opacity = value;
                    };
                    this.Invoke(d, new object[1] {
                        t
                    });
                }
                else
                {
                    this.Opacity = t;
                }
                t += 0.1;
                Delay(150);
                if (this.Opacity == 1.0)
                {
                    break;
                }
            }

            Delay(8000);

            while (true)
            {
                if (this.InvokeRequired)
                {
                    SetForm d = delegate(double value)
                    {
                        this.Opacity = value;
                    };
                    this.Invoke(d, new object[1] {
                        t
                    });
                }
                else
                {
                    this.Opacity = t;
                }
                t -= 0.1;
                System.Threading.Thread.Sleep(150);
                if (this.Opacity == 0)
                {
                    break;
                }
            }
            this.Dispose();
        }
Exemple #3
0
        private void iSoft设置ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SetForm autorunForm = new SetForm();

            autorunForm.ShowTipBallon += new ShowTipBallonHandle(STB);

            ChangeSkin(autorunForm);

            autorunForm.Show();
        }