예제 #1
0
 private void Awesomium_Windows_Forms_WebControl_DocumentReady(object sender, Awesomium.Core.DocumentReadyEventArgs e)
 {
     richTextBox1.AppendText("WebControl_DocumentReady webControl1.IsDocumentReady = " + webControl1.IsDocumentReady + " webControl1.IsLoading " + webControl1.IsLoading + "\n");
     if (webControl1.IsLoading || !webControl1.IsDocumentReady)
     {
         richTextBox1.AppendText("WebControl_DocumentReady return\n");
         return;
     }
 }
예제 #2
0
파일: UpdateForm.cs 프로젝트: pipe01/AnLes
        private void Awesomium_Windows_Forms_WebControl_DocumentReady(object sender, Awesomium.Core.DocumentReadyEventArgs e)
        {
            //this.Show();
            var ret = webControl.ExecuteJavascriptWithResult("versions");

            if (!ret.IsUndefined)
            {
                this.Show();
            }
            Console.WriteLine(ret.ToString());
        }
예제 #3
0
        private void Awe_DocumentCompleted(object sender, Awesomium.Core.DocumentReadyEventArgs e)
        {
            string result;
            int    L;

            this._nom = this.Title;
            L         = _nom.Length;
            result    = "*";
            if (L > 25)                                                  //si nom > a la longueur -> mettre la longueur voulu dans L + ...
            {
                L      = 25;
                result = "...";
            }
            result      = "*" + _nom.Substring(0, L) + result;                // couper la chaine apres la longueur L
            _tpage.Text = result;

            Actualiser();                                                // afficher si possibilité page suivante ou précédente
            //  MessageBox.Show(_form.url.Text.ToString());
        }