예제 #1
0
 private void dtgRoles_SelectionChanged(object sender, Telerik.Windows.Controls.SelectionChangeEventArgs e)
 {
     if (e.AddedItems != null && e.AddedItems.Count > 0)
     {
         var RoleDTO = e.AddedItems[0] as RoleDTO;
         if (RoleDTO != null)
         {
             RoleSelectedArg arg = new RoleSelectedArg();
             arg.Role = RoleDTO;
             if (RoleSelected != null)
             {
                 RoleSelected(this, arg);
             }
         }
     }
 }
예제 #2
0
 void ucRoleList_RoleSelected(object sender, RoleSelectedArg e)
 {
     ucRoleEdit.ShowRole(e.Role);
 }
 void frm_RoleSelected(object sender, RoleSelectedArg e, Window window)
 {
     window.Close();
     bizOrganization.AddRoleToOrganizationUser(organizationUser.ID, e.Role.ID);
     ShowRoles();
 }