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(); }
private void MainWindow_FormClosing(object sender, FormClosingEventArgs e) { siderisFiles.AcceptChanges(); siderisFiles.WriteXml(datafile); }