Beispiel #1
0
        private void SetChildren()
        {
            container.Children.Clear();

            var info = pbData.GetSubscriptionInfo();

            if (lastMenuitemClicked != "SecureBrowser" && PremiumExpiring.ShowUpgradePanel(info))
            {
                var control = new PremiumExpiring(info, false, resolver);
                container.Children.Add(control);
            }
        }
        private void SetChildren()
        {
            container.Children.Clear();

            var info = pbData.GetSubscriptionInfo();

            if (PremiumExpiring.ShowUpgradePanel(info))
            {
                var border = new Border()
                {
                    Margin = new Thickness(0, 1, 0, 1), BorderThickness = new Thickness(0, 0.5, 0, 0), BorderBrush = (SolidColorBrush)(new BrushConverter().ConvertFrom("#565C5E"))
                };
                wind = new PremiumExpiring(info, true, resolver)
                {
                    Margin = new Thickness(9, 0, 9, 0)
                };
                border.Child = wind;
                container.Children.Add(border);
            }
        }