Beispiel #1
0
        public TabbedPage1()
        {
            InitializeComponent();
            torrent = new MyTorrent();
            torrent.initDownloadMan();
            ListViewDownloads.ItemsSource = MyTorrent.TorrentInfoList;
            //ListViewDownloads.BindingContext = MyTorrent.TorrentInfoList;

            /*for (int i = 0; i < 150; i++)
             * {
             *
             *  Debug.WriteLine("its a test");
             * }
             * initTorrentEngineAsync();
             * torrent.TorrentStateChanged += this.ontorrentStateChanged;
             * init download page
             * bool run = true;
             * var listDownload = new ListView();
             * ObservableCollection<downloads> employees = new ObservableCollection<downloads>();
             * listDownload.ItemsSource = employees;
             *
             * while (run)
             * {
             *  foreach (TorrentManager manager in MyTorrent.torrents)
             *  {
             *
             *  }
             * }*/
        }
Beispiel #2
0
 public async void initTorrentEngineAsync()
 {
     await MyTorrent.setupEngine();
 }