Esempio n. 1
0
        private void ShowAd()
        {
            try
            {

                //PatchNotes.Navigate("http://ygopro.de/launcher/indexlauncher.php", false);

                //string loc = LauncherHelper.GetLocation();

                //if (!LauncherHelper.IsEuropeanLocation(loc))
                //    return;
                Image image;

                switch (Program.Config.Language.ToLower())
                {
                    case "german":
                        image = Properties.Resources.cardmarketDE;
                        break;
                    case "spanish":
                        image = Properties.Resources.cardmarketES;
                        break;
                    case "french":
                        image = Properties.Resources.cardmarketFR;
                        break;
                    case "italian":
                        image = Properties.Resources.cardmarketIT;
                        break;
                    default:
                        image = Properties.Resources.cardmarketEN;
                        break;
                }

                this.BeginInvoke((MethodInvoker) delegate {
                   var item = new Banner("tcgmarket", "http://ygopro.de/launcher/werbung/linktrackercheck.php?tcgmarket=bannerheader" , image);
                   item.Dock = DockStyle.Right;
                   AdPanel.Controls.Add(item, 0, 0);
                });

            }
            catch
            {

            }
        }
Esempio n. 2
0
        private void ShowAd()
        {
            try
            {
                //PatchNotes.Navigate("http://en.ygodevpro.com/launcher/indexlauncher.php", false);

                //string loc = LauncherHelper.GetLocation();

                //if (!LauncherHelper.IsEuropeanLocation(loc))
                //    return;
                Image image;
                string lang;
                switch (Program.Config.Language.ToLower())
                {
                    case "german":
                        image = Properties.Resources.cardmarketDE;
                        lang = "de";
                        break;

                    case "spanish":
                        image = Properties.Resources.cardmarketES;
                        lang = "es";
                        break;

                    case "french":
                        image = Properties.Resources.cardmarketFR;
                        lang = "fr";
                        break;

                    case "italian":
                        image = Properties.Resources.cardmarketIT;
                        lang = "it";
                        break;

                    default:
                        image = Properties.Resources.cardmarketEN;
                        lang = "en";
                        break;
                }

                this.BeginInvoke((MethodInvoker)delegate
                {
                    var item = new Banner("tcgmarket", "http://158.69.116.140/web-devpro/linktracker.php?lang=" + lang, image);
                    item.Dock = DockStyle.Right;
                    AdPanel.Controls.Add(item, 0, 0);
                });
            }
            catch
            {
            }
        }