Exemplo n.º 1
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            if (!this.Visible)
            {
                // 利用panel显示工程进度信息
                this.Show();
            }
            else if (string.IsNullOrEmpty(mImageUrl) || webBrowser1.Visible)
            {
                // 如果没有图像或者已经显示图像,隐藏当前窗口
                this.Hide();
                ws = ShowFormStatus.eClosing;
                //DetailIsStopping?.Invoke();
            }
            else
            {
                //显示图像
                //NextPanelStarting?.Invoke();

                webBrowser1.Show();
                panel1.Hide();
                timer1.Interval = mTimeInterval;
                timer1.Start();
            }
        }
Exemplo n.º 2
0
 public void interruptShow()
 {
     timer1.Stop();
     ws = ShowFormStatus.eReadyForNext;
     this.Hide();
 }
Exemplo n.º 3
0
 public void preShow()
 {
     timer1.Interval = mTimeInterval;
     timer1.Start();
     ws = ShowFormStatus.eStarting;
 }