private void MenuItem_Click_1(object sender, RoutedEventArgs e) { if (list.SelectedIndex >= 0) { SendMessageWindow window = new SendMessageWindow(User, Friends[list.SelectedIndex].User1.Email); window.Show(); } }
private void btnNewMessage_Click(object sender, RoutedEventArgs e) { SendMessageWindow window = new SendMessageWindow(User, ""); window.Show(); }