private void OnDatabaseLogBindingSourceCurrentItemChanged(object sender, System.EventArgs e) { _currentDatabaseLog = uxDatabaseLogBindingSource.Current as Entities.DatabaseLog; if (_currentDatabaseLog != null) { _currentDatabaseLog.Validate(); } //_DatabaseLog.Validate(); OnCurrentEntityChanged(); }