private void OnWindowLoaded(object sender, RoutedEventArgs e)
        {
            using var context = new TwipsterDbContext();

            //Deleting current user and other users passwords and logins from array
            var usersCensored = context.Users.OrderBy(x => x.Name)
                                .Where(x => x.Login != CurrentUserModel.CurrentUser.Login)
                                .Select(x => new SelectedUserModel
            {
                Login     = x.Login,
                Name      = x.Name,
                Surname   = x.Surname,
                BirthDate = x.BirthDate
            })
                                .ToList();

            CurrentUserTextBlock.Text = userModelServices.CurrentUserToString();
            UsersGrid.ItemsSource     = usersCensored;
            PostGridRefresh(context);
        }
 private void PutCurrentUserInformationToTextBoxt(User currentUserEntity)
 {
     CurrentUserModel.CurrentUser         = currentUserEntity;
     mainWindow.CurrentUserTextBlock.Text = userModelServices.CurrentUserToString();
 }