示例#1
0
 public void DownloadElement(FileInDB selectedFile)
 {
     saveFileDialog.FileName = selectedFile.FileName;
     if (saveFileDialog.ShowDialog() == true)
     {
         File.WriteAllText(saveFileDialog.FileName, Encoding.UTF8.GetString(SevenZipHelper.Decompress(selectedFile.BinaryData)));
     }
 }
示例#2
0
 public async void RemoveElement(FileInDB selectedFile)
 {
     await sql.DeleteFile(selectedFile.Id);
 }