private static void OnVCTaskCompletedEvent(Task task, CompletionAction completionAction) { WindowPending[] array = Resources.FindObjectsOfTypeAll(typeof(WindowPending)) as WindowPending[]; WindowPending[] array2 = array; for (int i = 0; i < array2.Length; i++) { WindowPending windowPending = array2[i]; switch (completionAction) { case CompletionAction.UpdatePendingWindow: case CompletionAction.OnCheckoutCompleted: windowPending.UpdateWindow(); break; case CompletionAction.OnChangeContentsPendingWindow: windowPending.OnChangeContents(task); break; case CompletionAction.OnIncomingPendingWindow: windowPending.OnIncoming(task); break; case CompletionAction.OnChangeSetsPendingWindow: windowPending.OnChangeSets(task); break; case CompletionAction.OnGotLatestPendingWindow: windowPending.OnGotLatest(task); break; } } if (completionAction != CompletionAction.OnSubmittedChangeWindow) { if (completionAction != CompletionAction.OnAddedChangeWindow) { if (completionAction == CompletionAction.OnCheckoutCompleted) { if (EditorUserSettings.showFailedCheckout) { WindowCheckoutFailure.OpenIfCheckoutFailed(task.assetList); } } } else { WindowChange.OnAdded(task); } } else { WindowChange.OnSubmitted(task); } task.Dispose(); }
private static void OnVCTaskCompletedEvent(Task task, CompletionAction completionAction) { WindowPending[] array = Resources.FindObjectsOfTypeAll(typeof(WindowPending)) as WindowPending[]; WindowPending[] array2 = array; for (int i = 0; i < array2.Length; i++) { WindowPending windowPending = array2[i]; if (completionAction == CompletionAction.UpdatePendingWindow) { windowPending.UpdateWindow(); } else { if (completionAction == CompletionAction.OnChangeContentsPendingWindow) { windowPending.OnChangeContents(task); } else { if (completionAction == CompletionAction.OnIncomingPendingWindow) { windowPending.OnIncoming(task); } else { if (completionAction == CompletionAction.OnChangeSetsPendingWindow) { windowPending.OnChangeSets(task); } else { if (completionAction == CompletionAction.OnGotLatestPendingWindow) { windowPending.OnGotLatest(task); } } } } } } if (completionAction == CompletionAction.OnSubmittedChangeWindow) { WindowChange.OnSubmitted(task); } else { if (completionAction == CompletionAction.OnAddedChangeWindow) { WindowChange.OnAdded(task); } } task.Dispose(); }