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(); } }
public void interruptShow() { timer1.Stop(); ws = ShowFormStatus.eReadyForNext; this.Hide(); }
public void preShow() { timer1.Interval = mTimeInterval; timer1.Start(); ws = ShowFormStatus.eStarting; }