Example #1
0
        private void FriendTypingChangedHandler(object sender, ToxEventArgs.TypingStatusEventArgs e)
        {
            if (e.FriendNumber != _friendViewModel.FriendNumber)
            {
                return;
            }

            DispatcherHelper.CheckBeginInvokeOnUI(() => { IsFriendTyping = e.IsTyping; });
        }
Example #2
0
        private void Tox_OnFriendTypingChanged(object sender, ToxEventArgs.TypingStatusEventArgs e)
        {
            MainWindow.Instance.UInvoke(() =>
            {
                var friend = FindFriend(e.FriendNumber);
                if (friend == null)
                {
                    Debugging.Write("We don't know about this friend!");
                    return;
                }

                friend.IsTyping = e.IsTyping;
            });
        }
Example #3
0
 private void FriendTypingChangedHandler(object sender, ToxEventArgs.TypingStatusEventArgs e)
 {
     FriendTypingChanged?.Invoke(this, e);
 }
Example #4
0
 private void OnToxFriendTypingChanged(object sender, ToxEventArgs.TypingStatusEventArgs e)
 {
     MainForm.Instance.NotifyToxFriendTypingChanged(e);
 }