protected internal virtual void OnCompleted(MachineWideProcessResults result) { var handler = Completed; if (handler == null) return; handler(result); }
protected internal virtual void OnCompleted(MachineWideProcessResults result) { var handler = Completed; if (handler == null) { return; } handler(result); }
protected virtual void OnCompletedRegisterPrig(ConsoleViewModel vm, MachineWideProcessResults result) { switch (result) { case MachineWideProcessResults.Skipped: vm.ShowSkippedMachineWideProcessMessage(SkippedReasons.AlreadyRegistered); vm.EndSkippedMachineWideProcessProgress(SkippedReasons.AlreadyRegistered); break; case MachineWideProcessResults.Completed: vm.ShowCompletedMachineWideProcessMessage(); vm.EndCompletedMachineWideProcessProgress(); break; } }
protected virtual void OnCompletedUnregisterPrig(PrigViewModel vm, MachineWideProcessResults result) { switch (result) { case MachineWideProcessResults.Skipped: vm.ShowSkippedMachineWideProcessMessage(SkippedReasons.AlreadyRegistered); vm.EndSkippedMachineWideProcessProgress(SkippedReasons.AlreadyRegistered); break; case MachineWideProcessResults.Completed: var restarts = vm.ConfirmRestartingVisualStudioToTakeEffect(); vm.EndCompletedMachineWideProcessProgress(); if (!restarts) { return; } ProcessMixin.RestartCurrentProcess(); break; } }
protected virtual void OnCompletedUnregisterPrig(PrigViewModel vm, MachineWideProcessResults result) { switch (result) { case MachineWideProcessResults.Skipped: vm.ShowSkippedMachineWideProcessMessage(SkippedReasons.AlreadyRegistered); vm.EndSkippedMachineWideProcessProgress(SkippedReasons.AlreadyRegistered); break; case MachineWideProcessResults.Completed: var restarts = vm.ConfirmRestartingVisualStudioToTakeEffect(); vm.EndCompletedMachineWideProcessProgress(); if (!restarts) return; ProcessMixin.RestartCurrentProcess(); break; } }