public static void ShowCurrentUserProperties(IAppNetworkProviderService networkProvider) { using (var form = new CurrentUserPropertiesDemo()) { UserProperties up = new UserProperties(); IAppUser user = networkProvider.GetServer().Context(); up.Name = user.GetName(); up.FirstName = user.GetFirst_Name(); up.Group = user.GetGroup(); up.LastName = user.GetLast_Name(); up.Email = user.GetEmail(); up.ChangePasswordAtNextLogon = user.GetChangePasswordAtNextLogon(); up.CannotChangePassword = user.GetCannotChangePassword(); up.PasswordExpired = user.GetPasswordExpired(); up.Disabled = user.GetDisabled(); up.LockedOut = user.GetLockedOut(); up.RemainingLockOutMinutes = user.GetRemainingLockOutMinutes(); up.PasswordChangedAt = user.GetPasswordChangedAt(); up.LockedOutToDateTime = user.GetLockedOutToDateTime(); form.SetObject(up); form.StartPosition = FormStartPosition.CenterParent; form.ShowDialog(); } }