public void AppActionList( AppBase app , GlobalTemplateMembers.CannotDoTemplate cannotDo , GlobalTemplateMembers.NodataTemplate nodata , AppActionListHeadFootTemplate head , AppActionListHeadFootTemplate foot , AppActionListItemTemplate item) { AppActionCollection appActions = app.AppActions; head(); int j = 0; foreach (AppAction appAction in appActions) { if (FeedBO.Instance.IsSiteFeed(app.AppID, appAction.ActionType)) { continue; } bool display = true; foreach (FeedSendItem tempItem in AllSettings.Current.PrivacySettings.FeedSendItems) { if ((tempItem.DefaultSendType == FeedSendItem.SendType.ForceSend || tempItem.DefaultSendType == FeedSendItem.SendType.ForceNotSend) && tempItem.AppID == app.AppID && tempItem.ActionType == appAction.ActionType) { display = false; } } if (display) { item(j++, appAction); } } if (appActions.Count == 0) { nodata(); } foot(); }
public void AppActionList( AppBase app , GlobalTemplateMembers.CannotDoTemplate cannotDo , GlobalTemplateMembers.NodataTemplate nodata , AppActionListHeadFootTemplate head , AppActionListHeadFootTemplate foot , AppActionListItemTemplate item) { AppActionCollection appActions = app.AppActions; head(); int j = 0; foreach (AppAction appAction in appActions) { if (FeedBO.Instance.IsSiteFeed(app.AppID, appAction.ActionType)) continue; bool display = true; foreach (FeedSendItem tempItem in AllSettings.Current.PrivacySettings.FeedSendItems) { if ((tempItem.DefaultSendType == FeedSendItem.SendType.ForceSend || tempItem.DefaultSendType == FeedSendItem.SendType.ForceNotSend) && tempItem.AppID == app.AppID && tempItem.ActionType == appAction.ActionType) display = false; } if (display) item(j++, appAction); } if (appActions.Count == 0) nodata(); foot(); }