コード例 #1
0
 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();
     }
 }
コード例 #2
0
 private void ShowMotherAddress(object sender, EventArgs e)
 {
     MotherAddressForm.ShowMe();
 }