示例#1
0
        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;
 }
示例#3
0
 void SelectUser(Logic.User user)
 {
     CUName   = user?.Name;
     CUBitmap = user?.PictureCopy;
 }