private void tmrFadeIn_Tick(object sender, EventArgs e) { this.Opacity += 0.035; if (this.Opacity >= 1) { BGThread.RunWorkerAsync(); tmrFadeIn.Stop(); } }
private void btnConvert_Click(object sender, EventArgs e) { List <object> something = new List <object> { chkPinyinRules.Checked, cboSource.SelectedIndex, rtfInput.Text }; webView.DocumentText = Html.Loading(); BGThread.RunWorkerAsync(something); }
private void frmSplashScreen_Load(object sender, EventArgs e) { lblVersion.Text = String.Format(lblVersion.Text, Globals.AppInfo.Version); if (OS.IsLinux) { BGThread.RunWorkerAsync(); } else { this.Opacity = 0.0; tmrFadeIn.Start(); } }
private void SplashScreen_Load(object sender, EventArgs e) { if (OS.IsLinux) { this.Width = 600; this.Height = 400; BGThread.RunWorkerAsync(); } else { lblWho.Parent = pictSplashScreen; lblVersion.Parent = pictSplashScreen; this.Opacity = 0.0; tmrFadeIn.Start(); } }