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