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