private void UsersBindingSource_CurrentChanged(object sender, System.EventArgs e) { if (UsersBindingSource.Current != null) { LoadAndBindPermissions(((ExtranetUser)UsersBindingSource.Current).UserID); enableNavigator(true); } else { enableNavigator(false); PermissionsBindingSource.Clear(); BindPermissions(); } }
private void RemoveRecord() { PermissionsBindingSource.Clear(); UsersBindingSource.RemoveCurrent(); }