private void motherValidateAndShowError() { if (_entityValidator != null) { _entityValidator.controlCollection = panelMother.Controls; _entityValidator.DataEntity = motherBindingSource.DataSource; _entityValidator.SetErrorProvider(errorProvider1); MotherNameForm.ValidateAndShowError(); MotherAddressForm.ValidateAndShowError(); } if (!MotherAddressForm.IsValid()) { MotherAddressForm.ShowMe(); MotherAddressForm.ValidateAndShowError(); } }
private void ShowMotherAddress(object sender, EventArgs e) { MotherAddressForm.ShowMe(); }