public void DeleteOutput() { if (OutPath != null && windowService.Confirm(string.Format("Do you want to delete\n {0} ?", OutPath))) { if (!IOTools.DeleteFile(OutPath)) { windowService.ShowMessage(string.Format("Can't delete {0}.", OutPath)); } } }
public void DeleteFile() { if (windowService.Confirm(string.Format("Do you want to delete\n {0} ?", FilePath))) { if (!IOTools.DeleteFile(FilePath)) { windowService.ShowMessage(string.Format("Can't delete {0}.", FilePath)); } } }