예제 #1
0
 public void Begin(CancellableOperation operation, DataDriveViewModel drive = null)
 {
     try {
         Debug.Assert(!Busy);
         operation.Finished += HandleOperationFinished;
         operationInProgress = operation;
         operation.Begin(vm, drive);
     }
     catch (Exception e) {
         App.LogCrash(e);
         LogFile.Log("Exception trying to begin {0}: {1} ", operation.Name, e.Message);
     }
 }
예제 #2
0
 public void Begin(CancellableOperation operation, DataDriveViewModel drive = null)
 {
     try {
     Debug.Assert(!Busy);
     operation.Finished += HandleOperationFinished;
     operationInProgress = operation;
     operation.Begin(vm, drive);
       }
       catch (Exception e) {
     App.LogCrash(e);
     LogFile.Log("Exception trying to begin {0}: {1} ", operation.Name, e.Message);
       }
 }
예제 #3
0
 private void HandleOperationFinished()
 {
     operationInProgress.Finished -= HandleOperationFinished;
     OperationFinished(operationInProgress, new EventArgs());
     operationInProgress = null;
 }
예제 #4
0
 private void HandleOperationFinished()
 {
     operationInProgress.Finished -= HandleOperationFinished;
       OperationFinished(operationInProgress, new EventArgs());
       operationInProgress = null;
 }