private void UserAccountsListBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { UserAccount selectedAccount = (UserAccount)UserAccountsListBox.SelectedItem; if (selectedAccount != null) { UserAccountBeingEdited = selectedAccount.Clone(); userDetailsGrid.IsEnabled = true; } else { UserAccountBeingEdited = null; userDetailsGrid.IsEnabled = false; } SelectUsersAvatar(); }
public UserAccount GetSupervisor() { return((UserAccount)Supervisor.Clone()); }
public UserAccount GetAccountRep() { return((UserAccount)AccountRep.Clone()); }