Exemple #1
0
        private void HandleAvatarTransfer(ToxEventArgs.FileSendRequestEventArgs e)
        {
            var    ID   = Tox.GetFriendPublicKey(e.FriendNumber).ToString();
            string path = Utilities.GetAvatarPath(e.FriendNumber, Tox);

            IncomingFileTransfer ft = new IncomingFileTransfer(e, Tox, path);

            ft.OnComplete += (vm) =>
            {
                GetContactViewModelByFriendNumber(e.FriendNumber).Image = path;
            };
        }
Exemple #2
0
        private void HandleAvatarTransfer(ToxEventArgs.FileSendRequestEventArgs e)
        {
            var ID = Tox.GetFriendPublicKey(e.FriendNumber).ToString();
            string path = Utilities.GetAvatarPath(e.FriendNumber, Tox);

            IncomingFileTransfer ft = new IncomingFileTransfer(e, Tox, path);

            ft.OnComplete += (vm) =>
            {
                GetContactViewModelByFriendNumber(e.FriendNumber).Image = path;
            };
        }