示例#1
0
        private void OnAssignNewKeysRequestMsg(AssignNewKeysRequestMsg msg)
        {
            MessageBoxResult result = MessageBox.Show(
                "Are you sure, you want a new key pair?\nYou have to inform your friends and have to send them your new public key file.",
                "Security Check", MessageBoxButton.YesNo, MessageBoxImage.Question);

            if (result == MessageBoxResult.Yes)
            {
                _messenger.Send(new AssignNewKeysConfirmMsg());
            }
        }
        private void OnAssignNewKeysRequestMsg(AssignNewKeysRequestMsg msg)
        {
            MessageBoxResult result = MessageBox.Show(
                "Are you sure, you want a new key pair?\nYou have to inform your friends and have to send them your new public key file.",
                "Security Check", MessageBoxButton.YesNo, MessageBoxImage.Question);

            if (result == MessageBoxResult.Yes)
            {
                _messenger.Send(new AssignNewKeysConfirmMsg());
            }
        }