Exemplo n.º 1
0
    public void ReloadNews()
    {
        Task.Run(async() =>
        {
            this.newsLoaded = false;

            this.headlines = await Headlines.Get(this.app.Launcher, this.app.Settings.ClientLanguage ?? ClientLanguage.English).ConfigureAwait(false);
            this.banners   = new TextureWrap[this.headlines.Banner.Length];

            var client = new HttpClient();

            for (var i = 0; i < this.headlines.Banner.Length; i++)
            {
                var textureBytes = await client.GetByteArrayAsync(this.headlines.Banner[i].LsbBanner).ConfigureAwait(false);
                this.banners[i]  = TextureWrap.Load(textureBytes);
            }

            this.newsLoaded = true;
        });
    }
Exemplo n.º 2
0
 public Background()
 {
     this.bgTexture = TextureWrap.Load(AppUtil.GetEmbeddedResourceBytes("bg1.jpg"));
 }
 public SettingsTabAbout()
 {
     this.logoTexture = TextureWrap.Load(AppUtil.GetEmbeddedResourceBytes("logo.png"));
 }