예제 #1
0
 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();
     }
 }
예제 #2
0
 private void RemoveRecord()
 {
     PermissionsBindingSource.Clear();
     UsersBindingSource.RemoveCurrent();
 }