private void FriendTypingChangedHandler(object sender, ToxEventArgs.TypingStatusEventArgs e) { if (e.FriendNumber != _friendViewModel.FriendNumber) { return; } DispatcherHelper.CheckBeginInvokeOnUI(() => { IsFriendTyping = e.IsTyping; }); }
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; }); }
private void FriendTypingChangedHandler(object sender, ToxEventArgs.TypingStatusEventArgs e) { FriendTypingChanged?.Invoke(this, e); }
private void OnToxFriendTypingChanged(object sender, ToxEventArgs.TypingStatusEventArgs e) { MainForm.Instance.NotifyToxFriendTypingChanged(e); }