public HouseholdPage(MainWindow householdWindow) { if (householdRest == null) { householdRest = new HouseholdRest(); } if (userManager == null) { userManager = new ClientUserManager(); } InitializeComponent(); List <HouseholdDto> households = new List <HouseholdDto>(); fillHouseholdsList(); this.mainWindow = householdWindow; currentUsernameTextBlock.Text = "Current user: " + userManager.Get().Result.Username; }
public UserPage(MainWindow userWindow) { if (userRest == null) { userRest = new UserRest(); } if (userManager == null) { userManager = new ClientUserManager(); } InitializeComponent(); List <ThingDto> users = new List <ThingDto>(); fillUsersList(); this.mainWindow = userWindow; currentUsernameTextBlock.Text = "Current user: " + userManager.Get().Result.Username; }