Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try
- {
- Thread t = new Thread(() =>
- {
- try
- {
- result = myclass.Start(mode, Check, Tasks,exeMode);
- }
- catch (GeneralException ge)
- {
- }
- finally
- {
- if (Master)
- {
- }
- }
- });
- t.IsBackground = true;
- t.Start();
- bResult = true;
- }
- catch(GeneralException ge)
- {
- }
- mode = Mode.Continue;
- if (ErrorCode != 0)
- {
- this.Invoke(new System.EventHandler(_showErrorMsg), execErrorCode, EventArgs.Empty);
- }
- else if (result == Result.RegainRequest)
- {
- this.Invoke(new System.EventHandler(_showMsg), Modes.RegainRequest, new EventArgs());
- }
- else if (result == Result.RegainRequestNoClear)
- {
- this.Invoke(new System.EventHandler(_showMsg), Modes.RegainRequestNoClear, new EventArgs());
- }
- else if (result == Result.PathRemain)
- {
- this.Invoke(new System.EventHandler(_showMsg), Modes.PathRemain, new EventArgs());
- }
- else
- {
- _regainmode = RegainMode.Continue;
- }
- else if (result == Result.RegainRequest)
- {
- this.Invoke(new System.EventHandler(_showMsg), Modes.RegainRequest, new EventArgs());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement