I made it work

This commit is contained in:
alphafetus committed 2023-11-30 13:35:25 -05:00
1 parent 2b4ed5374a
commit fab011b898
5 files changed
+35 -13

No files matched your search

+11 -4
View File
@@ -40,9 +40,7 @@ public class NewViewModel : ViewModelBase {
okEnabled);
ClearCommand = ReactiveCommand.Create(() => {
PcgsNumber = "";
Grade = "";
Quantity = "";
ClearText();
});
// Initialize grade values for use in the view.
@@ -83,4 +81,13 @@ public class NewViewModel : ViewModelBase {
public ReactiveCommand<Unit, (int, string, int)> OkCommand { get; }
public ReactiveCommand<Unit, Unit> ClearCommand { get; }
}
/// <summary>
/// Clears the text fields.
/// </summary>
public void ClearText() {
PcgsNumber = "";
Grade = "";
Quantity = "";
}
}