Exemplo n.º 1
0
        /// <summary>
        /// Méthode invoquée lors de l'initialisation du viewModel en mode design
        /// </summary>
        protected override Task OnInitializeDesigner()
        {
            Users = new BulkObservableCollection <User>(DesignData.GenerateUsers());
            Roles = DesignData.GenerateRoles().Select(r => new PresentationRole(this, r)).ToArray();
            DesignData.LinkUsersWithRoles(Users, Roles.Select(r => r.Role));
            Languages = DesignData.GenerateLanguages().ToArray();

            CurrentUser = Users.First();

            return(Task.CompletedTask);
        }