void loadOperation_RoleActionCompleted(object sender, EventArgs e)
 {
     LoadOperation loadOperation = sender as LoadOperation;
     foreach (ProductManager.Web.Model.role_action role_action in loadOperation.Entities)
     {
         RoleActionEntity roleActionEntity = new RoleActionEntity();
         roleActionEntity.RoleAction = role_action;
         roleActionEntity.Update();
         ActionAndUserActionEntity actionAndUserActionEntity;
         if (ActionAndUserActionEntityDictionary.TryGetValue(roleActionEntity.ActionID, out actionAndUserActionEntity))
         {
             actionAndUserActionEntity.RoleActionEntity = roleActionEntity;
         }
     }
     UpdateUserAction();
 }
        void loadOperation_RoleActionCompleted(object sender, EventArgs e)
        {
            LoadOperation loadOperation = sender as LoadOperation;
            foreach (ProductManager.Web.Model.role_action role_action in loadOperation.Entities)
            {
                RoleActionEntity roleActionEntity = new RoleActionEntity();
                roleActionEntity.RoleAction = role_action;
                roleActionEntity.Update();
                ActionAndRoleActionEntity actionAndRoleActionEntity;
                if (ActionAndRoleAnctionEntityDictionary.TryGetValue(roleActionEntity.ActionID, out actionAndRoleActionEntity))
                {
                    actionAndRoleActionEntity.RoleActionEntity = roleActionEntity;
                }
            }

            RootActionAndRoleActionEntity.ChildList.Clear();
            foreach (KeyValuePair<int, ActionAndRoleActionEntity> actionAndRoleActionEntityPair in ActionAndRoleAnctionEntityDictionary)
            {
                actionAndRoleActionEntityPair.Value.CurrentRoleEntity = SelectRoleEntity;
                int supperActionID = actionAndRoleActionEntityPair.Value.ActionEntity.SupperActionID;
                if (supperActionID == 0)
                {
                    RootActionAndRoleActionEntity.ChildList.Add(actionAndRoleActionEntityPair.Value);
                }
            }
            UpdateChanged("RootActionAndRoleActionEntity");
            IsBusy = false;
        }