コード例 #1
0
ファイル: WebForm.cs プロジェクト: RobIncAMDSPhD/phonegap
 private void webBrowser_Navigating(object sender, WebBrowserNavigatingEventArgs e) {
     if (e.Url.Host.Equals("gap.exec")) {
         e.Cancel = true;
         String res = commandManager.processInstruction(e.Url.AbsolutePath);
         webBrowser.Navigate(new Uri("javascript:" + res + ";abc.x=1;//JS error!"));
     }
 }
コード例 #2
0
ファイル: WebsiteScreenshot.cs プロジェクト: DeSciL/Ogama
    /// <summary>
    /// This method creates a new form with a webbrowser of correct size on it,
    /// to make a fullsize website screenhot.
    /// </summary>
    /// <param name="navigatingArgs">The <see cref="WebBrowserNavigatingEventArgs"/> instance containing the event data,
    /// especially the url.</param>
    /// <param name="filename">The filename to save the screenshot to.</param>
    public static void DoScreenshot(WebBrowserNavigatingEventArgs navigatingArgs, string filename)
    {
      newTargetUrl = navigatingArgs.Url;
      newScreenshotFilename = filename;

      var tempBrowser = new WebBrowser();
      var dummyForm = new Form { ClientSize = new Size(1, 1), FormBorderStyle = FormBorderStyle.None };
      dummyForm.ShowInTaskbar = false;
      dummyForm.Controls.Add(tempBrowser);
      dummyForm.Show();
      tempBrowser.ScrollBarsEnabled = true;
      tempBrowser.ScriptErrorsSuppressed = true;
      tempBrowser.DocumentCompleted += WebBrowserDocumentCompleted;

      if (navigatingArgs.TargetFrameName != string.Empty)
      {
        tempBrowser.Navigate(navigatingArgs.Url, navigatingArgs.TargetFrameName);
      }
      else
      {
        tempBrowser.Navigate(newTargetUrl);
      }

      while (tempBrowser.ReadyState != WebBrowserReadyState.Complete)
      {
        Application.DoEvents();
      }

      tempBrowser.Dispose();
    }
コード例 #3
0
 void webBrowser_Navigating(object sender, WebBrowserNavigatingEventArgs e)
 {
     if (selectButton != null)
     {
         selectButton.Enabled = false;
     }
 }
コード例 #4
0
 void ExtendedBrowserControl_Navigating(object sender, System.Windows.Forms.WebBrowserNavigatingEventArgs e)
 {
     if (e.Url != null && !String.IsNullOrEmpty(e.Url.AbsoluteUri) && e.Url.AbsoluteUri.StartsWith("http") && !e.Url.AbsoluteUri.Contains("#") && String.IsNullOrEmpty(e.TargetFrameName) && EnableInternalReloader && !SelfNavigate)
     {
         Console.WriteLine("{0}: +)", DateTime.Now.ToString("HH:mm:ss fff"));
     }
 }
コード例 #5
0
ファイル: Designer.cs プロジェクト: rudybear/moai-ide
        /// <summary>
        /// This event is raised when the user has navigated within the web browser.
        /// </summary>
        /// <param name="sender">The sender of the event.</param>
        /// <param name="e">The navigation event information.</param>
        private void c_WebBrowser_Navigating(object sender, WebBrowserNavigatingEventArgs e)
        {
            Uri uri = e.Url;

            if (uri.ToString().StartsWith("about:"))
            {
                e.Cancel = true;
                Dictionary<String, String> query = this.GetDictionaryFromQuery(uri.Query);

                switch (uri.LocalPath)
                {
                    case "solution":
                        switch (query["mode"])
                        {
                            case "new":
                                // Call the "New Solution" menu option.
                                new Platform.Menus.Definitions.Solution.New().OnActivate();
                                break;
                            case "open":
                                // Call the "Open Solution" menu option.
                                new Platform.Menus.Definitions.Solution.Open().OnActivate();
                                break;
                        }
                        break;
                    case "tutorial":
                        MessageBox.Show(
                            "The selected tutorial is currently unavailable.",
                            "Tutorial Unavailable",
                            MessageBoxButtons.OK,
                            MessageBoxIcon.Error);
                        break;
                }
            }
        }
コード例 #6
0
        protected virtual void OnSipRequest(WebBrowserNavigatingEventArgs e)
        {
            SipRequestArgs srArgs = new SipRequestArgs();
            srArgs.Command = e.Url.Host.ToString();

            string original = e.Url.PathAndQuery.ToString();
            original = original.Replace("&hash;", "#");
            string[] swp = original.Split('?');
            if (swp.Length == 1) {
                //no arguments
                srArgs.Command = original;
            } else {
                srArgs.Command = swp[0];
                foreach (string kvpair in swp[1].Split('&')) {
                    swp = kvpair.Split('=');
                    string key = swp[0].ToLower();
                    string val="";
                    if (swp.Length > 1) {
                        //argument with no value
                        val = Uri.UnescapeDataString(swp[1]);
                    }
                    srArgs.Arguments.Add(key, val);
                }
            }
            MySipRequest(this, srArgs);
            e.Cancel = srArgs.Cancel;
        }
コード例 #7
0
ファイル: About.cs プロジェクト: spncrgr/connector-idea
 private void browser_Navigating(object sender, WebBrowserNavigatingEventArgs e)
 {
     if (!pageLoaded) return;
     string url = e.Url.ToString();
     Process.Start(url);
     e.Cancel = true;
 }
コード例 #8
0
        void br_Navigating(object sender, WebBrowserNavigatingEventArgs e)
        {
            if (e.Url.AbsoluteUri.StartsWith(endLink))
            {
                // parse result
                string urlEnd = e.Url.ToString().Split('#')[1];
                Dictionary<string, string> values = new Dictionary<string, string>();
                string[] nameValues = urlEnd.Split(new[] { "&" }, StringSplitOptions.RemoveEmptyEntries);
                foreach (var nameValue in nameValues)
                {
                    // Separate this values by '=' so you get name/key and value as separated field in array
                    string[] temp = nameValue.Split(new[] { "=" }, StringSplitOptions.RemoveEmptyEntries);

                    if (temp.Length == 2)
                    {
                        values.Add(temp[0], WebUtility.UrlDecode(temp[1]));
                    }
                }

                Token = new TokenResult();
                Token.AccessToken = values["access_token"];
                Token.InstanceUrl = values["instance_url"];
                Token.RefreshToken = values["refresh_token"];

                // close window
                this.Close();
            }
        }
コード例 #9
0
        private void web_Navigating( object sender, WebBrowserNavigatingEventArgs e )
        {
            string strUrl = e.Url.ToString();
            string strNo = GetNaviNo(strUrl);

            GotoPage(strNo);
        }
コード例 #10
0
 void webBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e)
 {
     btnReloadCancel.Image = (Image)Properties.Resources.cross;
     pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
     pictureBox1.Image = (Image)Properties.Resources.loadingAnimation;
     loading = true;
 }
コード例 #11
0
ファイル: HomePage.cs プロジェクト: robhoes/xenadmin
        private void webBrowser_Navigating(object sender, WebBrowserNavigatingEventArgs e)
        {
            if (initializing)
                return;

            e.Cancel = true;

            string url = e.Url.OriginalString;

            // this is not abstracted away as long as we have only a very limited number of functionalities:
            if (url != null && url.StartsWith(XCNS, StringComparison.InvariantCultureIgnoreCase))
            {
                if (url.Contains("HelpContents"))
                {
                    XenAdmin.Help.HelpManager.Launch(null);
                }
                else if (url.Contains("AddServer"))
                {
                    new AddHostCommand(Program.MainWindow, this).Execute();
                }
            }
            else
            {
                Program.OpenURL(url);
            }
        }
コード例 #12
0
 public void Browser_Navigating(Object b, WebBrowserNavigatingEventArgs x)
 {
     Core.History("Navigating()");
     if (x.Url.ToString() == "about:blank")
     {
         return;
     }
 }
コード例 #13
0
 private void webBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e)
 {
     if (webBrowser1.Visible == true)
     {
         System.Diagnostics.Process.Start(e.Url.ToString());
         e.Cancel = true;
     }
 }
コード例 #14
0
ファイル: HelpForm.cs プロジェクト: awesomist/mcsLaunch
 private void webHelp_Navigating(object sender, WebBrowserNavigatingEventArgs e)
 {
     if (e.Url.ToString() != helpFile)
     {
         e.Cancel = true;
         System.Diagnostics.Process.Start(e.Url.ToString());
     }
 }
 // Halts navigation if the user has not entered a name.
 private void WebBrowser1_Navigating(object sender, System.Windows.Forms.WebBrowserNavigatingEventArgs e)
 {
     if (webBrowser1.Document.All["userName"].GetAttribute("value").Equals(""))
     {
         e.Cancel = true;
         System.Windows.Forms.MessageBox.Show("Please enter your name.");
     }
 }
コード例 #16
0
ファイル: About.cs プロジェクト: jariz/EasyCapture
 private void webBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e)
 {
     if (!or)
     {
         e.Cancel = true;
         Core.openLink(e.Url.OriginalString);
     }
 }
コード例 #17
0
ファイル: AboutVoodoo.cs プロジェクト: ssube/VoodooShader
 private void WebNavigating(object sender, WebBrowserNavigatingEventArgs e)
 {
     if (m_NoNav)
     {
         System.Diagnostics.Process.Start(e.Url.ToString());
         e.Cancel = true;
     }
 }
 private void wbRequest_Navigating(object sender, WebBrowserNavigatingEventArgs e)
 {
     //if (e.Url.ToString().StartsWith(_callbackUrl.ToString()))
     //{
     //    _facebookService.ReceiveRequestData(e.Url);
     //    Close();
     //}
 }
コード例 #19
0
 private void helpBrowser_Navigating(object sender, WebBrowserNavigatingEventArgs e)
 {
     if (e.Url.Host.Length != 0)
     {
         e.Cancel = true;
         Process.Start(e.Url.ToString());
     }
 }
コード例 #20
0
ファイル: AdWidget.cs プロジェクト: huoxudong125/VideoSearch
        private void webBrowser_Navigating(object sender, WebBrowserNavigatingEventArgs e)
        {
            //cancel the current event
            e.Cancel = true;

            //this opens the URL in the user's default browser
            Process.Start(e.Url.ToString());
        }
コード例 #21
0
ファイル: OAuthForm.cs プロジェクト: skomski/StreamNotifier
        private void webBrowser_Navigating(object sender, WebBrowserNavigatingEventArgs e)
        {
            if (!e.Url.AbsoluteUri.Contains("#access_token=")) return;

              string[] x = e.Url.AbsoluteUri.Split(new[] {"#access_token="}, StringSplitOptions.None);
              AccessToken = x[1].Split(new[] {'&'})[0];
              DialogResult = DialogResult.OK;
              Close();
        }
コード例 #22
0
 /// <summary>
 /// Nice to bail out early if we can, for SAML you can't
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void webBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e)
 {
     IOAuthResponse response;
     if (_authenticationHelper.IsComplete(e.Url, out response))
     {
         e.Cancel = true;
         HandleOAuthResponse(response);
     }
 }
コード例 #23
0
ファイル: Logon.cs プロジェクト: Hagser/csharp
 void webBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e)
 {
     if (e.Url.Host.Length>0 && redirect_uri.Contains(e.Url.Host))
     {
         string Code = e.Url.Fragment.Replace("#access_token=", "");
         this.Code = Code.Split('&')[0];
         this.Close();
     }
 }
コード例 #24
0
ファイル: HtmlContent.cs プロジェクト: figment/tesvsnip
 private void webBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e)
 {
     if (e.Url.ToString() == "about:blank") return;
     e.Cancel = true;
     if (OnLinkClicked != null)
     {
         OnLinkClicked(this, new LinkClickedEventArgs(e.Url.ToString()));
     }
 }
コード例 #25
0
ファイル: ReleaseNotesControl.cs プロジェクト: smther/FreeOQ
 private void browser_Navigating(object sender, WebBrowserNavigatingEventArgs e)
 {
   int result;
   if (!int.TryParse(e.Url.AbsolutePath, out result) || result < 0 || result >= this.uriList.Count)
     return;
   if (this.DownloadRequested != null)
     this.DownloadRequested((object) this, new UriEventArgs(this.uriList[result]));
   e.Cancel = true;
 }
コード例 #26
0
ファイル: WebDialog.cs プロジェクト: killbug2004/reko
 void webBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e)
 {
     if (webBrowser1.Document != null)
     {
         e.Cancel = true;
         HtmlElement contents = Contents;
         contents.InnerHtml = GenerateContent(e.Url.PathAndQuery);
     }
 }
コード例 #27
0
ファイル: Navegador.cs プロジェクト: moisesiq/aupaga
 void webPagina_Navigating(object sender, WebBrowserNavigatingEventArgs e)
 {
     const string sUrlVacio = "about:blank";
     if (e.Url.ToString() == sUrlVacio)
     {
         string sXmls = this.webPagina.Document.GetElementById("preXmls").InnerText;
         var aXmls = sXmls.Split('\n');
         UtilLocal.MensajeInformacion(sXmls);
     }
 }
コード例 #28
0
 void HandleNavigating(object sender, SWF.WebBrowserNavigatingEventArgs e)
 {
     if (enableNavigatingEvent)
     {
         var url = e.Url.AbsoluteUri;
         ApplicationContext.InvokeUserCode(delegate {
             e.Cancel = EventSink.OnNavigateToUrl(url);
         });
     }
 }
コード例 #29
0
ファイル: Admin.cs プロジェクト: GagiuFilip1/KennenAdmin
 //WebBrowserNavigateErrorEventArgs
 private void browser_NavigateError(object sender, WebBrowserNavigatingEventArgs e)
 {
     if (webBrowser2.ScriptErrorsSuppressed)
     {
         webBrowser2.DocumentCompleted -= browser_DocumentCompleted;
         webBrowser2.ScriptErrorsSuppressed = false;
         webBrowser2.Stop();
         webBrowser2.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(browser_DocumentCompleted_Error);
     }
 }
コード例 #30
0
 void webBrowser_Navigating(object sender, WebBrowserNavigatingEventArgs e)
 {
     if (importButtonAll != null)
     {
         importButtonAll.Enabled = false;
         importLabelAll.Text = "(-)";
         importButtonMissing.Enabled = false;
         importLabelMissing.Text = "(-)";
     }
 }
コード例 #31
0
        private void _webBrowser_Navigating(object sender, WebBrowserNavigatingEventArgs e)
        {
            if (e.Url.LocalPath.EndsWith(".xpi"))
            {
                _spellCheck.AddDictionary(this, e.Url);

                e.Cancel = true;
                Dispose();
            }
        }
コード例 #32
0
 // Navigating event handle
 void IEBrowser_Navigating(object sender, forms.WebBrowserNavigatingEventArgs e)
 {
     // navigation count increases by one
     navigationCounter++;
     // write url into the form's caption
     if (form != null)
     {
         form.Text = e.Url.ToString();
     }
 }
コード例 #33
0
 protected override void OnNavigating(WebBrowserNavigatingEventArgs e)
 {
     string uriString = e.Url.ToString();
     if (!(uriString.StartsWith("about") || !Uri.IsWellFormedUriString(uriString, UriKind.Absolute)))
     {
         e.Cancel = true;
         WebHelper.LaunchBrowser(uriString);
     }
     base.OnNavigating(e);
 }
コード例 #34
0
ファイル: flowchart.cs プロジェクト: EdgarEDT/myitoppsp
 private void webBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e)
 {
     if (!e.Url.ToString().Contains("htm"))
     {
         e.Cancel = true;
         string tempusee = e.Url.ToString();
         tempusee = tempusee.Substring(tempusee.LastIndexOf('/') + 1, tempusee.Length - tempusee.LastIndexOf('/') - 1);
         MessageBox.Show(tempusee);
     }
 }
コード例 #35
0
 private void webBrowser_Navigating(object sender, System.Windows.Forms.WebBrowserNavigatingEventArgs e)
 {
     try
     {
         if (e.Url.AbsoluteUri != "about:blank")
         {
             System.Diagnostics.Process.Start(e.Url.AbsoluteUri);
             e.Cancel = true;
         }
     }
     catch { }
 }
コード例 #36
0
 void HandleNavigating(object sender, SWF.WebBrowserNavigatingEventArgs e)
 {
     if (enableNavigatingEvent)
     {
         var newurl = string.Empty;
         if (e.Url != null)
         {
             newurl = e.Url.AbsoluteUri;
         }
         ApplicationContext.InvokeUserCode(delegate {
             e.Cancel = EventSink.OnNavigateToUrl(newurl);
         });
     }
 }
コード例 #37
0
    //更简单的方法对按钮绑定事件?局部变量导致每次点击 index不一致
    //for (int idx = 0; idx<UrlBtnBg.Count; idx++)
    //{
    //	UrlBtnBg[idx].MouseEnter += (sender, args) => { MouseEvent(background, args, idx, true);};
    //  UrlBtnBg[idx].MouseLeave += (sender, args) => { MouseEvent(background, args, idx, false); };
    //	UrlBtnBg[idx].MouseClick += (sender, args) => { FormController.Instance.NavigateURL(sender, args, idx); };
    //}

    void OnWebLogin_Navigating(object sender, System.Windows.Forms.WebBrowserNavigatingEventArgs e)
    {
        string info = webLogin.Url.AbsoluteUri;

        //TODO 忽略大小写
        if (info.Contains("username") && info.Contains("Sign") && info.Contains("ts"))
        {
            this.TopMost = false;
            FormController.Instance.StartGame(info);
            //延时几秒再关闭
            //if (CurrentTimer != null)
            //{
            //    CurrentTimer.Start();
            //}
        }
    }
コード例 #38
0
ファイル: HTMLControl.cs プロジェクト: figment/Legends-Viewer
 private void BrowserNavigating(object sender, System.Windows.Forms.WebBrowserNavigatingEventArgs e)
 {
     if (e.Url.ToString() != "about:blank")
     {
         string url = e.Url.ToString();
         url = url.Substring(url.IndexOf(":") + 1, url.Length - url.IndexOf(":") - 1); //remove "about:" at the beginning of the url
         if (!NavigateToNewControl(url))
         {
             if (!NavigateToNewObjectPage(url))
             {
                 throw new Exception("Could not navigate with url: " + url);
             }
         }
         e.Cancel = true; //Prevent the browser from actually navigating to a new page
     }
 }
コード例 #39
0
        void m_Browser_Navigating(object sender, System.Windows.Forms.WebBrowserNavigatingEventArgs e)
        {
            string url = e.Url.OriginalString;

            if (!string.IsNullOrEmpty(url))
            {
                if (url.StartsWith(HELPPROTOCOL))
                {
                    url = url.Substring(HELPPROTOCOL.Length, url.Length - HELPPROTOCOL.Length);
                    if (url.EndsWith("/"))
                    {
                        url = url.Substring(0, url.Length - 1);
                    }
                    NavigateTo(url);
                    e.Cancel = true;
                }
            }
        }
コード例 #40
0
        /// <summary>
        /// Event handler for a user clicking on a word hyperlink inside the webbrowser.
        /// This raises an event that can be handled by the application.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void NavigateCanvas(object sender, System.Windows.Forms.WebBrowserNavigatingEventArgs e)
        {
            string tmpstr = null;

            tmpstr = e.Url.ToString();
            tmpstr = Strings.Replace(tmpstr, "about:blank", "");
            tmpstr = Strings.Replace(tmpstr, "about:", "");

            tmpstr = Strings.Replace(tmpstr, "%20", " ");

            if (!string.IsNullOrEmpty(tmpstr))
            {
                //e.Url = tmpstr
                e.Cancel = true;

                if (CanvasNavigating != null)
                {
                    CanvasNavigating(sender, tmpstr);
                }
            }
        }
コード例 #41
0
 public void BeforeNavigate2(object pDisp, ref object urlObject, ref object flags, ref object targetFrameName, ref object postData, ref object headers, ref bool cancel)
 {
     if (this.AllowNavigation || !this.haveNavigated)
     {
         if (targetFrameName == null)
         {
             targetFrameName = "";
         }
         if (headers == null)
         {
             headers = "";
         }
         string uriString = (urlObject == null) ? "" : ((string)urlObject);
         WebBrowserNavigatingEventArgs e = new WebBrowserNavigatingEventArgs(new Uri(uriString), (targetFrameName == null) ? "" : ((string)targetFrameName));
         this.parent.OnNavigating(e);
         cancel = e.Cancel;
     }
     else
     {
         cancel = true;
     }
 }
        void webBrowser1_Navigating(object sender, System.Windows.Forms.WebBrowserNavigatingEventArgs e)
        {
            if (e.Url.PathAndQuery.ToLower().Contains("/citrix/metaframe/site/launcher.aspx?"))
            {
                e.Cancel = true;
                string icaFileName = e.Url.AbsoluteUri.Replace("launcher.aspx?", "launch.ica?");
                webBrowser1.Visible = false;

                ICAClient.Visible = true;
                ICAClient.Width   = base.Width;
                ICAClient.Height  = base.Height;
                ICAClient.LoadIcaFile(icaFileName);
                VCClientComm.Start();
                // AutoAppResize makes the app full screen even though
                // the control is smaller.  It also removes the scrollbars
                // and clips the display.  Citrix is was working on a fix a while back (case #60065812)
                ICAClient.AutoAppResize = false;
                ICAClient.Connect();

                webBrowser1.Dispose();
                webBrowser1 = null;
            }
        }
コード例 #43
0
		protected virtual void OnNavigating(WebBrowserNavigatingEventArgs e)
		{
			throw null;
		}
コード例 #44
0
 private void wbLogin_Navigating(object sender, wf.WebBrowserNavigatingEventArgs e)
 {
     this.btnLoggedIn.IsEnabled = false;
 }
コード例 #45
0
ファイル: CCLicense.cs プロジェクト: paba50/NOPSA-Ribbon-API
 void webBrowser_Navigating(object sender, System.Windows.Forms.WebBrowserNavigatingEventArgs e)
 {
     //throw new System.NotImplementedException();
     webBrowser.Visible = false;
     loading_pb.Show();
 }
コード例 #46
0
 void webBrowserReqTraceGraph_Navigating(object sender, System.Windows.Forms.WebBrowserNavigatingEventArgs e)
 {
     //check for navigating to WebReqPro - cancel in that scenario
     // by e.Cancel = true;
 }
コード例 #47
0
        private void Ie_Navigating(object sender, System.Windows.Forms.WebBrowserNavigatingEventArgs e)
        {
            /*if (e.Url.ToString().ToLower().Contains("ad"))
             *  e.Cancel = true;*/
            if (e.Url.ToString().Contains("p=tags"))
            {
                try
                {
                    TagUrl = e.Url.ToString();

                    e.Cancel = true;
                    ie.ie.Stop();

                    TagResult = Web.Get(TagUrl.Split('?')[0], TagUrl.Split('?')[1]);

                    List <string> artist = new List <string>(), name = new List <string>();
                    string        album = "", playUrl = "";
                    bool          cover = false;

                    CQ cq = CQ.Create(TagResult);

                    foreach (IDomObject obj in cq.Find("form"))
                    {
                        if (obj.GetAttribute("action").Contains("index.php?p=complete"))
                        {
                            FinalFormUrl = "http://convert2mp3.net" + UrlLang + "/" + obj.GetAttribute("action");
                            break;
                        }
                    }

                    foreach (IDomObject obj in cq.Find("option"))
                    {
                        if (obj.ParentNode.GetAttribute("id").Contains("inputArtist"))
                        {
                            artist.Add(obj.InnerText);
                        }
                        if (obj.ParentNode.GetAttribute("id").Contains("inputTitle"))
                        {
                            name.Add(obj.InnerText);
                        }
                    }

                    /*
                     * foreach (IDomObject obj in cq.Find("select"))
                     * {
                     *  if (obj.GetAttribute("id").Contains("inputArtist"))
                     *  {
                     *      artist = obj.FirstChild.InnerText;
                     *      break;
                     *  }
                     * }
                     *
                     * foreach (IDomObject obj in cq.Find("select"))
                     * {
                     *  if (obj.GetAttribute("id").Contains("inputTitle"))
                     *  {
                     *      name = obj.FirstChild.InnerText;
                     *      break;
                     *  }
                     * }*/

                    foreach (IDomObject obj in cq.Find("input"))
                    {
                        if (obj.GetAttribute("id").Contains("inputAlbum"))
                        {
                            string value = obj.GetAttribute("value");
                            album = value;
                            break;
                        }
                    }

                    foreach (IDomObject obj in cq.Find("input"))
                    {
                        if (obj.GetAttribute("id").Contains("inputCover"))
                        {
                            string value = obj.GetAttribute("value");
                            if (value == "1")
                            {
                                cover = true;
                            }

                            break;
                        }
                    }

                    /*
                     * foreach (IDomObject obj in cq.Find("script"))
                     * {
                     *  if (obj.InnerText.Contains("audiojs"))
                     *  {
                     *      playUrl += obj.ToString();
                     *      break;
                     *  }
                     * }
                     *
                     * foreach (IDomObject obj in cq.Find("div"))
                     * {
                     *  if (obj.GetAttribute("class").Contains("audiojs"))
                     *  {
                     *      playUrl += obj.ToString();
                     *      break;
                     *  }
                     * }
                     */
                    playUrl = null;

                    WhenConverted(true, artist.ToArray(), name.ToArray(), album, cover, playUrl);
                }
                catch (Exception ex)
                {
                    MessageBox.Show("Can't convert: " + ex.ToString());
                    WhenConverted(false, null, null, null, false, null);
                }
            }
        }