示例#1
0
        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;
        }
示例#2
0
        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;
        }