Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
Clear dialog fields before adding items
Browse files Browse the repository at this point in the history
  • Loading branch information
liamspitaels committed Jan 17, 2021
1 parent 7c5141a commit 41a3133
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Vecto.UWP/Pages/Sections/PackingSectionPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ private Guid GetItemIdFromCheckBox(CheckBox cb)

private async void AddItem_Button_OnClick(object sender, RoutedEventArgs e)
{
AddItemName.Text = "";
AddItemName.Description = "";
AddItemAmount.Value = 1;

if (await AddItemDialog.ShowAsync() != ContentDialogResult.Primary) return;

try
Expand Down
3 changes: 3 additions & 0 deletions Vecto.UWP/Pages/Sections/TodoSectionPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ private Guid GetItemIdFromCheckBox(CheckBox cb)

private async void AddTodo_Button_OnClick(object sender, RoutedEventArgs e)
{
AddTodoName.Text = "";
AddTodoDesc.Text = "";

if (await AddTodoDialog.ShowAsync() != ContentDialogResult.Primary) return;

try
Expand Down

0 comments on commit 41a3133

Please sign in to comment.