private void Champ_MouseEnter(object sender, MouseEventArgs e) { if (friend?.Invite != null) { AcceptButt.BeginStoryboard(App.FadeIn); DeclineButt.BeginStoryboard(App.FadeIn); } }
private void AcceptButt_Click(object sender, RoutedEventArgs e) { if (friend.Invite == null) { return; } LoLClient.QueueManager.JoinLobby(friend.Invite.Accept()); friend.Invite = null; AcceptButt.BeginStoryboard(App.FadeOut); DeclineButt.BeginStoryboard(App.FadeOut); }
private void DeclineButt_Click(object sender, RoutedEventArgs e) { if (friend.Invite == null) { return; } friend.Invite.Decline(); friend.Invite = null; AcceptButt.BeginStoryboard(App.FadeOut); DeclineButt.BeginStoryboard(App.FadeOut); }
private void Champ_MouseLeave(object sender, MouseEventArgs e) { AcceptButt.BeginStoryboard(App.FadeOut); DeclineButt.BeginStoryboard(App.FadeOut); }