// Event - Double Click on profile event private void ProfileEventsListing_DoubleClick(object sender, RoutedEventArgs e) { var selectedItems = ProfileEventsListing.SelectedItems; foreach (ProfileEvent profileEvent in selectedItems) { EventForm editEvent = new EventForm(currentProfile.Id, profileEvent); editEvent.Show(); } }
// Event - Click new event button on profile private void ClickNewEventButton(object sender, RoutedEventArgs e) { EventForm newEvent = new EventForm(currentProfile.Id); newEvent.Show(); }