예제 #1
0
        public void AddDownload(string fullPath, string hash, long size, List <string> hosts)
        {
            FilesDataSet.DownloadsRow row;
            row = files.Downloads.AddDownloadsRow(fullPath, hash, size, 0, 0);
            files.AcceptChanges();

            Download download = new Download(this, row, hosts);

            downloads.Add(download);
            download.Start();
        }
예제 #2
0
 private void MainWindow_FormClosing(object sender, FormClosingEventArgs e)
 {
     siderisFiles.AcceptChanges();
     siderisFiles.WriteXml(datafile);
 }