コード例 #1
0
ファイル: Main.cs プロジェクト: michalbali256/ezshare
 /// <summary>
 /// Opens save dialog and saves .share file to user-specified location
 /// </summary>
 /// <param name="torrent">The torrent of which to save .share file</param>
 private void SaveShareFile(Torrent torrent)
 {
     if (saveFileDialogShare.ShowDialog() != DialogResult.OK)
     {
         return;
     }
     try
     {
         manager.SaveShareFile(torrent, saveFileDialogShare.FileName);
     }
     catch (IOException exception)
     {
         MessageBox.Show("Could not save to specified location: " + saveFileDialogFile.FileName + " Reason: " + exception.Message);
     }
 }