Esempio n. 1
0
 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;
     }
 }
Esempio n. 2
0
        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();
        }