Changes in DeliveryAdminWindow
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user