Exemplo n.º 1
0
        private async void TorrentStatusUpdateTimer_TickAsync(object sender, EventArgs e)
        {
            List <WebUITorrent> WebUITorrentList = await WebWorker.GetTorrentListAsync(SID, StatusFilter, CategoryFilter);

            TorrentListGridView.Rows.Clear();
            FillTorrentGridView(WebUITorrentList);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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();
        }