public override async Task SuspendAsync() { await base.SuspendAsync(); ClipboardClearViewModel.TimerComplete -= ClipboardTimerComplete; this.clipboardService.CredentialCopied -= ClipboardService_CredentialCopied; await Task.WhenAll( AppSettingsViewModel.SuspendAsync(), ClipboardClearViewModel.SuspendAsync() ); }
public override async Task ActivateAsync() { await base.ActivateAsync(); await Task.WhenAll( AppSettingsViewModel.ActivateAsync(), ClipboardClearViewModel.ActivateAsync() ); ClipboardClearViewModel.TimerComplete += ClipboardTimerComplete; this.clipboardService.CredentialCopied += ClipboardService_CredentialCopied; }