void OperationDone( ) { if (done) { return; } HostServicesSingleton.SafeThreadCall(WriteMid, "Done"); try { if (inOperationForm != null) { inOperationForm.Operation = null; HostServicesSingleton.SafeThreadCall(inOperationForm.Close); inOperationForm = null; } } catch (Exception e) { MessageService.ShowError(e); } finally { done = true; } }
public void OperationStart(string operationName, ThreadStart threadStart) { done = false; WriteMid(operationName); Thread thread = new Thread(new ThreadStart(new ThreadStartWrapper(threadStart).Start)); thread.Name = "SvnOperation"; thread.IsBackground = true; inOperationForm = new InOperationDialog(operationName, thread); inOperationForm.Owner = (Form)HostServicesSingleton.HostServices.Wb; inOperationForm.Show(); thread.Start(); }