public void Leech(string url, string pass) { items.Clear(); if (typesite != SiteDetecter.TypeSite.Unknown) { ProsCase(url, pass); } else { string reirected = tryLocation(url); DialogResult Dr = MessageBox.Show("Can't detecte site!\nUse Unknown script to leech?\nElse press No button to RedirectLink\nLink: " + reirected, "Error!", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning); if (Dr == DialogResult.No) { url = reirected; typesite = SiteDetecter.GetTypeSite(url); logger.AddMessage("Leeching " + url, Log.Type.Infomation); typesite = SiteDetecter.GetTypeSite(url); logger.AddMessage("Detected Site : " + typesite.ToString(), Log.Type.Infomation); Leech(url, pass); } else if (Dr == DialogResult.Yes) { items.Add(Unknown.GetLinks(url)); PrintItems(items); } else { logger.AddMessage("Can't detecte site!", Log.Type.Error); } } }
private static string tryLocation(string url) { return(Unknown.GetLinks(url).Link); }