public void Populate(UserResource user) { try { IJKEService channel = ServiceManager.GetChannel(); AccountResource[] accounts = channel.GetUserAccounts(user.UserName); this.DataContext = accounts; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
void AccountAccessControl_LogIn(object sender, LoginArgs e) { try { IJKEService channel = ServiceManager.GetChannel(); this.user = channel.GetUserResource(e.Username); NameText.Text = string.Format("Welcome, {0}", this.user.FirstName); ShowAccountsOverview(); OnChanged("IsLoggedIn"); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void Logout_Click(object sender, RoutedEventArgs e) { HideAll(); AccountAccessGrid.Visibility = Visibility.Visible; this.user = null; NameText.Text = null; this.AccountAccessControl.Clear(); OnChanged("IsLoggedIn"); }
public WizardData(UserResource user) { this.user = user; }
public DividendLauncher(UserResource user) { wizardData = new WizardData(user); }