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