private void UserSelectionChanged(object sender, SelectionChangedEventArgs e) { Logic.User newUser = e.AddedItems.Count > 0 ? e.AddedItems.Cast <Logic.User>().Single() : User.Anonym; SelectUser(newUser); popup.IsOpen = false; ChangedUserEventArgs args = new ChangedUserEventArgs(ChangedUserEvent, newUser); RaiseEvent(args); }
public ChangedUserEventArgs(RoutedEvent routedEvent, Logic.User user) : base(routedEvent) { _user = user; }
void SelectUser(Logic.User user) { CUName = user?.Name; CUBitmap = user?.PictureCopy; }