Esempio n. 1
0
 /// <summary>
 /// Background directory remove
 /// </summary>
 /// <param name="url">url of the file</param>
 /// <param name="fs">filesystem of the file</param>
 private void DoRmDir(string url, pluginner.IFSPlugin fs)
 {
     try
     {
         fs.DeleteDirectory(url, true);
     }
     catch (pluginner.ThisDirCannotBeRemovedException)
     {
         Utilities.ShowWarning(string.Format(Localizator.GetString("DirCantBeRemoved")),url);
     }
     catch (Exception err)
     {
         Utilities.ShowError(err.Message);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Background directory remove
 /// </summary>
 /// <param name="url">url of the file</param>
 /// <param name="fs">filesystem of the file</param>
 void DoRmDir(string url, pluginner.IFSPlugin fs)
 {
     try
     {
         fs.DeleteDirectory(url, true);
     }
     catch (pluginner.ThisDirCannotBeRemovedException)
     {
         new MsgBox(url, string.Format(Locale.GetString("DirCantBeRemoved"), url), MsgBox.MsgBoxType.Warning);
     }
     catch (Exception err)
     {
         new MsgBox(err.Message, null, MsgBox.MsgBoxType.Error);
     }
 }