private async void TorrentStatusUpdateTimer_TickAsync(object sender, EventArgs e) { List <WebUITorrent> WebUITorrentList = await WebWorker.GetTorrentListAsync(SID, StatusFilter, CategoryFilter); TorrentListGridView.Rows.Clear(); FillTorrentGridView(WebUITorrentList); }
private async void CategoriesListBox_SelectedIndexChangedAsync(object sender, EventArgs e) { TorrentListGridView.Rows.Clear(); CategoryFilter = CategoryListBox.SelectedItem.ToString(); List <WebUITorrent> WebUITorrentList = await WebWorker.GetTorrentListAsync(SID, StatusFilter, CategoryFilter); FillTorrentGridView(WebUITorrentList); }
private async void Form1_Load(object sender, EventArgs e) { VersionStatusLabel.Text = await WebWorker.GetqBitTorrentVersion(); SID = WebWorker.Auth("login", "password"); List <WebUITorrent> WebUITorrentList = await WebWorker.GetTorrentListAsync(SID, StatusFilter, CategoryFilter); FillTorrentGridView(WebUITorrentList); List <string> CategoriesList = WebWorker.GetCategories(); foreach (string Category in CategoriesList) { CategoryListBox.Items.Add(Category); } //TorrentStatusUpdateTimer.Start(); }