2020-11-25 20:31:21 +01:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Net;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Flowframes.UI
|
|
|
|
|
|
{
|
|
|
|
|
|
class GetWebInfo
|
|
|
|
|
|
{
|
|
|
|
|
|
public static async Task LoadNews (Label newsLabel)
|
|
|
|
|
|
{
|
2020-11-26 20:17:18 +01:00
|
|
|
|
string url = $"http://dl.nmkd.de/flowframes/changelog.txt";
|
2020-11-25 20:31:21 +01:00
|
|
|
|
var client = new WebClient();
|
|
|
|
|
|
var str = await client.DownloadStringTaskAsync(new Uri(url));
|
|
|
|
|
|
newsLabel.Text = str;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static async Task LoadPatronList(Label patronsLabel)
|
|
|
|
|
|
{
|
2020-11-26 20:17:18 +01:00
|
|
|
|
string url = $"http://dl.nmkd.de/flowframes/patreon.txt";
|
2020-11-25 20:31:21 +01:00
|
|
|
|
var client = new WebClient();
|
|
|
|
|
|
var str = await client.DownloadStringTaskAsync(new Uri(url));
|
|
|
|
|
|
patronsLabel.Text = str;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|