internal void DeleteLocalFile(DFtpFile localSelection) { DFtpAction action = new DeleteFileLocalAction(localSelection); DFtpResult result = action.Run(); return; }
public DFtpResult Go() { // Create the action // Initialize it with the info we've collected DFtpAction action = new DeleteFileLocalAction(Client.localSelection); // Carry out the action and get the result DFtpResult result = action.Run(); // Nullify the selection if successful. if (result.Type == DFtpResultType.Ok) { IOHelper.Message("The file '" + Client.localSelection.GetName() + "' was deleted successfully."); Client.remoteSelection = null; } return(result); }