예제 #1
0
        public override async Task SuspendAsync()
        {
            await base.SuspendAsync();

            ClipboardClearViewModel.TimerComplete  -= ClipboardTimerComplete;
            this.clipboardService.CredentialCopied -= ClipboardService_CredentialCopied;

            await Task.WhenAll(
                AppSettingsViewModel.SuspendAsync(),
                ClipboardClearViewModel.SuspendAsync()
                );
        }
예제 #2
0
        public override async Task ActivateAsync()
        {
            await base.ActivateAsync();

            await Task.WhenAll(
                AppSettingsViewModel.ActivateAsync(),
                ClipboardClearViewModel.ActivateAsync()
                );

            ClipboardClearViewModel.TimerComplete  += ClipboardTimerComplete;
            this.clipboardService.CredentialCopied += ClipboardService_CredentialCopied;
        }