private void ReplySend(object obj) { string MessageText = string.Empty; MessageBoxResult res = InputBoxView.ShowDialog(string.Format("New message to {0}", Gamertag), "Message:", out MessageText, MessageBoxButton.OKCancel); if (res == MessageBoxResult.OK) { XboxConnection.SendMessage(Gamertag, MessageText); } }
private void MessageSend(object obj) { string MessageText = string.Empty; MessageBoxResult res = InputBoxView.ShowDialog(string.Format("New message to {0}", Friends.ElementAt(SelectedFriendIndex).Gamertag), "Message:", out MessageText, MessageBoxButton.OKCancel); if (res == MessageBoxResult.OK) { XboxConnection.SendMessage(Friends.ElementAt(SelectedFriendIndex).Gamertag, MessageText); } }
private void MessageSend(object obj) { if (IndividualMessages) { foreach (Friend f in SelectedFriends) { XboxConnection.SendMessage(f.Gamertag, Message); } MessageBox.Show(string.Format("Message sent to {0} friends.", SelectedFriends.Count), "Success", MessageBoxButton.OK, MessageBoxImage.Exclamation); } else { throw new NotImplementedException(); } }