public void DoDestroy() { if (!FDestroyIds.IsNullOrEmpty()) { canceledTask = false; bool badId = true; for (int i = 0; i < FDestroyIds.SliceCount; i = i) { try { tweetIdToDestroy = Convert.ToInt64(FDestroyIds[i]); badId = false; } catch { FActionStatus[0] = "Tweet Id to destroy not recognised, you spineless turd"; FLogger.Log(LogType.Debug, "Tweet Id to destroy not recognised, you spineless turd"); badId = true; } if (!badId) { Tweet_Destroy(tweetIdToDestroy); if (FDestroyIds.SliceCount > 1) { MakeTaskWait("Destroy"); } } else { FLogger.Log(LogType.Debug, "...still removing it from the published list "); listTweetsPublished.RemoveAt(i); numOfTweetsPublished = listTweetsPublished.Count; FPublishedTweetId.RemoveAt(i); } if (!FMachineGun[0] || canceledTask) { break; } } FAllActionDone[0] = true; FLogger.Log(LogType.Debug, "FINISHED! Whatever you did, you did well. I believe in you mate."); } else { FActionStatus[0] = "Tweet Id to destroy null or empty, dickhead."; FLogger.Log(LogType.Debug, "Tweet Id to destroy null or empty, dickhead."); } }