Beispiel #1
0
 public bool OpenUrl(string url, string incognito, string trackAsConversion)
 {
     if (HelperFunctions.StringToBool(trackAsConversion))
     {
         new ConversionWindowClickedEvent
         {
             ConversionPoint = this._mPopup.BannerName,
             ConversionZone  = EumExtensions.GetDescription <PopUpZone>(this._mPopup.PopUpZone)
         }.FireEvent();
     }
     return(HelperFunctions.OpenFileInBrowser(url, HelperFunctions.StringToBool(incognito)) != null);
 }
        public static string GetThemedImage(string relativeImagePath)
        {
            relativeImagePath = relativeImagePath.Replace('/', '\\');
            if (relativeImagePath.StartsWith("\\") && relativeImagePath.Length > 1)
            {
                relativeImagePath = relativeImagePath.Substring(1);
            }
            string dataPath = HelperFunctions.get_DataPath();
            string text     = Path.Combine(dataPath, "Assets", EumExtensions.GetDescription <Theming.Theme>(Theming.CurrentTheme), relativeImagePath);

            if (!File.Exists(text))
            {
                return(Path.Combine(dataPath, "Assets", relativeImagePath));
            }
            return(text);
        }
Beispiel #3
0
 private void Popup_ShowPopUp(object sender, int widht, int height, string bannerName)
 {
     if (this._cancellationToken.IsCancellationRequested)
     {
         this.Popup_HidePopUp(this, "CANCEL");
         return;
     }
     new ConversionWindowEvent
     {
         ConversionZone  = EumExtensions.GetDescription <PopUpZone>(this._mZone),
         ConversionPoint = bannerName
     }.FireEvent();
     if (!ObjectHolder.MainForm.IsVisible || this._popUp.ForcePopup)
     {
         this.AdjustPosition(this._mStartupPosition);
         base.Visibility  = Visibility.Visible;
         base.WindowState = WindowState.Normal;
         base.Show();
         base.Focusable            = true;
         base.Topmost              = true;
         this._popUp.ShowCloseIcon = false;
         return;
     }
     if (this._contentFrame.Visibility == Visibility.Visible && !this._popupId.Equals(this._contentFrame.Tag))
     {
         this.AdjustPosition(this._mStartupPosition);
         base.Visibility  = Visibility.Visible;
         base.WindowState = WindowState.Normal;
         base.Show();
         base.Focusable            = true;
         base.Topmost              = true;
         this._popUp.ShowCloseIcon = false;
         return;
     }
     this._contentFrame.Tag = this._popupId;
     this._contentFrame.Navigate(this._popUp);
     this._contentFrame.Visibility = Visibility.Visible;
     this._popUp.ShowCloseIcon     = true;
     base.Focusable = true;
     ConversionPopUpHelpers.CloseConverionPopUp();
     ObjectHolder.MainForm.ShowMe();
 }
 public WiFiConnectionTerminatedEvent()
 {
     this.HotSpotType = ObjectHolder.WifiType;
     this.HotSpotProtectionSetting = EumExtensions.GetDescription <WifiPopup.WifiConnectionResult>(ObjectHolder.WifiProtectionSetting);
 }
 private static string GetThemeFolder()
 {
     return(string.Format("/Themes/{0}/", EumExtensions.GetDescription <Theming.Theme>(Theming.CurrentTheme)).Replace("//", "/"));
 }