Skip to content

Commit

Permalink
Merge pull request #2 from akesseler/default-buttons
Browse files Browse the repository at this point in the history
Default button support
  • Loading branch information
akesseler authored Feb 8, 2020
2 parents 958b7f3 + 131cf33 commit b0cdfd0
Show file tree
Hide file tree
Showing 21 changed files with 2,296 additions and 517 deletions.
46 changes: 46 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,58 @@ The _Dialog Box_ represents a simple replacement of the standard Windows message
has been implemented because of the fact that in WPF the standard Windows message box looks pretty
ugly.

### Examples

This example demonstrates how to show the `DialogBox` in the simplest possible way.

```
DialogBox.Show(this, message);
```

This example demonstrates how to show the `DialogBox` with a symbol and different buttons.

```
DialogBox.Show(this, message, DialogSymbol.Information, DialogButton.OkCancel);
```

This example demonstrates how to show the `DialogBox` with selecting a different default button.

```
DialogBox.Show(this, message, DialogSymbol.Error, DialogButton.YesNoCancel, DialogOption.DefaultButtonNo);
```

Finally note, it is also possible to provide a user-defined caption as well as to apply other options
like customized button labels.

## Open Folder Dialog

The _Open Folder Dialog_ instead represents a dialog window allowing users to choose a particular
directory. This dialog has been implemented because of the fact that such a dialog box does not
exist in WPF.

### Examples

This example demonstrates how to show the `OpenFolderDialog` in the simplest possible way.

```
OpenFolderDialog.Show(this);
```

This example demonstrates how to show the `OpenFolderDialog` with an additional message.

```
OpenFolderDialog.Show(this, message);
```

This example demonstrates how to show the `OpenFolderDialog` with an initial folder.

```
OpenFolderDialog.Show(this, new DirectoryInfo(@"C:\Users"));
```

Finally note, it is also possible to provide a user-defined caption as well as to provide both,
a message and an initial folder.

# Library Usage

**First Way**
Expand Down
10 changes: 9 additions & 1 deletion code/src/HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@


**1.0.1**

- Support of default buttons for class `DialogBox`.
- Support of static methods to show `OpenFolderDialog` (breaking changes).
- Code optimization and refactoring.
- Documentation of all public classes, methods and properties.
- Version number increased.
- Published on _GitHub_.

**1.0.0**

- Initial draft on _GitHub_.

Loading

0 comments on commit b0cdfd0

Please sign in to comment.