Advertisement
Guest User

Untitled

a guest
May 25th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. try
  2. {
  3. Thread t = new Thread(() =>
  4. {
  5. try
  6. {
  7. result = myclass.Start(mode, Check, Tasks,exeMode);
  8. }
  9. catch (GeneralException ge)
  10. {
  11.  
  12. }
  13.  
  14. finally
  15. {
  16. if (Master)
  17. {
  18.  
  19. }
  20. }
  21. });
  22. t.IsBackground = true;
  23. t.Start();
  24. bResult = true;
  25. }
  26. catch(GeneralException ge)
  27. {
  28.  
  29. }
  30.  
  31. mode = Mode.Continue;
  32.  
  33.  
  34. if (ErrorCode != 0)
  35. {
  36. this.Invoke(new System.EventHandler(_showErrorMsg), execErrorCode, EventArgs.Empty);
  37. }
  38. else if (result == Result.RegainRequest)
  39. {
  40. this.Invoke(new System.EventHandler(_showMsg), Modes.RegainRequest, new EventArgs());
  41. }
  42. else if (result == Result.RegainRequestNoClear)
  43. {
  44. this.Invoke(new System.EventHandler(_showMsg), Modes.RegainRequestNoClear, new EventArgs());
  45. }
  46. else if (result == Result.PathRemain)
  47. {
  48. this.Invoke(new System.EventHandler(_showMsg), Modes.PathRemain, new EventArgs());
  49. }
  50. else
  51. {
  52. _regainmode = RegainMode.Continue;
  53. }
  54.  
  55. else if (result == Result.RegainRequest)
  56. {
  57. this.Invoke(new System.EventHandler(_showMsg), Modes.RegainRequest, new EventArgs());
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement