Skip to content

Commit 0270361

Browse files
committed
5.0.1 hotfix
1 parent ed1cc3c commit 0270361

8 files changed

Lines changed: 17 additions & 16 deletions

File tree

src/EasyDialog.Samples/Authorization/AuthDialogContext.cs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,26 @@ public class AuthDialogContext : DialogContext<AuthDialogContext>
77
{
88
public DialogSet<string> Username { get; set; }
99
public DialogSet<string> Password { get; set; }
10-
public DialogSet<bool> IsRobot { get; set; }
10+
public DialogSet<bool> Robot { get; set; }
1111

12-
protected override void OnConfigure(DialogContextConfigureOptionsBuilder<AuthDialogContext> builder)
12+
protected override void OnConfiguring(DialogContextConfigureOptionsBuilder<AuthDialogContext> builder)
1313
{
1414
builder.UseMaterialStyle()
15-
.HasTitle("Authorization")
16-
.HasButton("Sign In", ButtonAlign.Center);
15+
.HasTitle("Authentification")
16+
.HasButton("Sign in");
1717

1818
builder.Item(x => x.Password)
1919
.AsTextBox()
20-
.UsePasswordChar('*');
20+
.UsePasswordChar();
2121

22-
builder.Item(x => x.IsRobot)
23-
.HasName("I'm not a robot");
22+
builder.Item(x => x.Robot)
23+
.HasName("I`m not a robot");
2424
}
2525

2626
protected override void OnButtonClick()
2727
{
28-
MessageBox.Show($"Username: {Username.Value}, Password: {Password.Value}");
28+
MessageBox.Show($@"Login: {Username.Value} Password: {Password.Value}");
29+
this.Close();
2930
}
3031
}
3132
}

src/EasyDialog.Samples/Basics/DialogWithBasicSupportedTypes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protected override void OnButtonClick()
3131

3232
}
3333

34-
protected override void OnConfigure(DialogContextConfigureOptionsBuilder<DialogWithBasicSupportedTypes> builder)
34+
protected override void OnConfiguring(DialogContextConfigureOptionsBuilder<DialogWithBasicSupportedTypes> builder)
3535
{
3636
builder.HasTitle("Supported types sample");
3737

src/EasyDialog.Samples/CustomControl/ButtonControlDialogContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ protected override void OnButtonClick()
1212

1313
}
1414

15-
protected override void OnConfigure(DialogContextConfigureOptionsBuilder<ButtonControlDialogContext> builder)
15+
protected override void OnConfiguring(DialogContextConfigureOptionsBuilder<ButtonControlDialogContext> builder)
1616
{
1717
builder.HasTitle("Custom control sample");
1818

src/EasyDialog.Samples/CustomType/TimeSpanCollectionDialogContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ protected override void OnButtonClick()
1414
Times.DataSource = Times.DataSource.Append(DateTime.Now.TimeOfDay);
1515
}
1616

17-
protected override void OnConfigure(DialogContextConfigureOptionsBuilder<TimeSpanCollectionDialogContext> builder)
17+
protected override void OnConfiguring(DialogContextConfigureOptionsBuilder<TimeSpanCollectionDialogContext> builder)
1818
{
1919
builder.HasTitle("Custom type collection sample");
2020

src/EasyDialog.Samples/CustomType/TimeSpanTypeDialogContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ protected override void OnButtonClick()
1313

1414
}
1515

16-
protected override void OnConfigure(DialogContextConfigureOptionsBuilder<TimeSpanTypeDialogContext> builder)
16+
protected override void OnConfiguring(DialogContextConfigureOptionsBuilder<TimeSpanTypeDialogContext> builder)
1717
{
1818
builder.HasTitle("Custom type sample");
1919

src/EasyDialog.Samples/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ static void Main()
2222
Application.EnableVisualStyles();
2323
Application.SetCompatibleTextRenderingDefault(false);
2424

25-
new DialogWithBasicSupportedTypes().ShowDialog();
25+
new AuthDialogContext().ShowDialog();
2626
}
2727
}
2828
}

src/EasyDialog/DialogContext.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public void ShowDialog()
2828
.GetFromProperties();
2929

3030
var options = new DialogContextConfigureOptionsBuilder<TContext>(items);
31-
OnConfigure(options);
31+
OnConfiguring(options);
3232

3333
dialogForm.Initialize(options);
3434

@@ -43,7 +43,7 @@ public void Close()
4343
dialogForm.Close();
4444
}
4545

46-
protected abstract void OnConfigure(DialogContextConfigureOptionsBuilder<TContext> builder);
46+
protected abstract void OnConfiguring(DialogContextConfigureOptionsBuilder<TContext> builder);
4747
protected internal abstract void OnButtonClick();
4848
}
4949
}

src/EasyDialog/EasyDialog.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Docs: https://github.com/bubuntoid/EasyDialog</Description>
1616
<RepositoryUrl>https://github.com/bubuntoid/EasyDialog</RepositoryUrl>
1717
<PackageTags>dialog, builder, ui, framework</PackageTags>
1818
<PackageReleaseNotes>Move to .NET 5</PackageReleaseNotes>
19-
<Version>5.0.0</Version>
19+
<Version>5.0.1</Version>
2020
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
2121
</PropertyGroup>
2222

0 commit comments

Comments
 (0)