Skip to content

Commit b8d6266

Browse files
author
donald
committed
Merge pull request '0.5.1' (#1) from issue-21 into main
2 parents 369bd43 + 04caffa commit b8d6266

File tree

4 files changed

+17
-11
lines changed

4 files changed

+17
-11
lines changed

AnyBox.psd1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
ModuleToProcess = 'AnyBox.psm1'
44

55
# Version number of this module.
6-
ModuleVersion = '0.5.0'
6+
ModuleVersion = '0.5.1'
77

88
# Supported PSEditions
99
# CompatiblePSEditions = 'Desktop'
@@ -12,16 +12,16 @@
1212
GUID = '2d4d8fd0-36c3-48e9-b6ac-48df0f9bc7ab'
1313

1414
# Author of this module
15-
Author = 'fresh2dev'
15+
Author = 'Fresh2dev'
1616

1717
# Company or vendor of this module
1818
# CompanyName = 'Unknown'
1919

2020
# Copyright statement for this module
21-
Copyright = '(c) 2022 fresh2.dev'
21+
Copyright = '(c) 2022 Fresh2.dev'
2222

2323
# Description of the functionality provided by this module
24-
Description = 'Designed to facilitate script input/output with an easily customizable WPF window.'
24+
Description = 'The easiest way to develop apps for Windows.'
2525

2626
# Minimum version of the PowerShell engine required by this module
2727
PowerShellVersion = '3.0'

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## v0.5.1 - 2022-06-26
4+
5+
### Fixed
6+
7+
- missing messages, comments when using .NET style API. [#21](https://github.com/fresh2dev/AnyBox/issues/21)
8+
39
## v0.5.0 - 2022-06-01
410

511
### Added

Public/Show-AnyBox.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ function Show-AnyBox
9090
[Parameter(ParameterSetName = 'create')]
9191
[string]$Image,
9292
[Parameter(ParameterSetName = 'create')]
93-
[Alias('m', 'Message')]
94-
[string[]]$Messages,
93+
[Alias('m')]
94+
[string[]]$Message,
9595
[Parameter(ParameterSetName = 'create')]
9696
[Alias('p', 'Prompt')]
9797
[object[]]$Prompts,
@@ -110,8 +110,8 @@ function Show-AnyBox
110110
[ValidateScript({ $_ -gt 0 })]
111111
[uint16]$ButtonRows = 1,
112112
[Parameter(ParameterSetName = 'create')]
113-
[Alias('c', 'Comment')]
114-
[string[]]$Comments,
113+
[Alias('c')]
114+
[string[]]$Comment,
115115
[Parameter(ParameterSetName = 'create')]
116116
[ValidateSet('Left', 'Center')]
117117
[Alias('Alignment')]
@@ -359,7 +359,7 @@ function Show-AnyBox
359359
}
360360

361361
# Add message textblocks.
362-
if (($txtMsg = New-TextBlock -RefForm ([ref]$form) -Text $($Messages -join [environment]::NewLine) -Name 'Message' -FontFamily $FontFamily -FontSize $FontSize -FontColor $FontColor -ContentAlignment $ContentAlignment))
362+
if (($txtMsg = New-TextBlock -RefForm ([ref]$form) -Text $($Message -join [environment]::NewLine) -Name 'Message' -FontFamily $FontFamily -FontSize $FontSize -FontColor $FontColor -ContentAlignment $ContentAlignment))
363363
{
364364
$form.highStack.AddChild($txtMsg)
365365
}
@@ -1169,7 +1169,7 @@ function Show-AnyBox
11691169
}
11701170

11711171
# Add comment textblocks.
1172-
if (($txtMsg = New-TextBlock -RefForm ([ref]$form) -text $($Comments -join [environment]::NewLine) -name 'txt_Explain' -FontFamily $FontFamily -FontSize $FontSize -FontColor $FontColor -ContentAlignment $ContentAlignment))
1172+
if (($txtMsg = New-TextBlock -RefForm ([ref]$form) -text $($Comment -join [environment]::NewLine) -name 'txt_Explain' -FontFamily $FontFamily -FontSize $FontSize -FontColor $FontColor -ContentAlignment $ContentAlignment))
11731173
{
11741174
$txtMsg.FontStyle = 'Italic'
11751175
$txtMsg.FontWeight = 'Normal'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AnyBox
22

3-
> The easiest way to develop simple apps in Windows.
3+
> The easiest way to develop apps for Windows.
44
55
[Read the Docs](https://fresh2.dev/doc/anybox/)

0 commit comments

Comments
 (0)