Beispiel #1
0
 private void tmrFadeIn_Tick(object sender, EventArgs e)
 {
     this.Opacity += 0.035;
     if (this.Opacity >= 1)
     {
         BGThread.RunWorkerAsync();
         tmrFadeIn.Stop();
     }
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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();
            }
        }
Beispiel #4
0
 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();
     }
 }