Changes in DeliveryAdminWindow

This commit is contained in:
2023-07-21 18:21:47 +02:00
parent 75322da405
commit 5cee928978
6 changed files with 299 additions and 89 deletions

View File

@ -181,7 +181,7 @@ namespace Elwig.Windows {
OriginalValues.Remove(input);
}
protected void ClearInputs() {
protected void ClearInputs(bool validate = true) {
foreach (var tb in TextBoxInputs)
tb.Text = "";
foreach (var cb in ComboBoxInputs)
@ -192,7 +192,7 @@ namespace Elwig.Windows {
cb.IsChecked = false;
foreach (var rb in RadioButtonInputs)
rb.IsChecked = false;
ValidateRequiredInputs();
if (validate) ValidateRequiredInputs();
}
protected bool IsValid => Valid.All(kv => kv.Value);