public void RunCommand(object args, ActionCalled ac) { if (ac == ActionCalled.ShowStart) { this.pi = (PodcastInfo)args; Thread t = new Thread(new ThreadStart(UpdateTwitter)); t.Start(); } }
private void ReportAction(string method, object[] prm) { if (!reportingAction) { try { reportingAction = true; ActionCalled?.Invoke(this, method, prm); } finally { reportingAction = false; } } }