private void InitActive() { IList <Stage_Level_activity> allBeans = base.GetAllBeans(); for (int i = 0; i < allBeans.Count; i++) { Stage_Level_activity _activity = allBeans[i]; if (_activity.ID < 0x7d0) { if (!this.mList.ContainsKey(_activity.Type)) { ActivityTypeData data = new ActivityTypeData(_activity.Type); data.Add(_activity); this.mList.Add(_activity.Type, data); this.mList2.Add(data); } else { this.mList[_activity.Type].Add(_activity); } } } if (< > f__am$cache0 == null) {
private void DisplayAdd() { ActivityTypeData data = new ActivityTypeData(); AddToolbar("add", 0); dvAddNewActivityType.Visible = true; dvActivityGrid.Visible = false; if (Page.IsPostBack) { data.Name = EkFunctions.HtmlEncode((string)txtName.Text); data.ObjectType = Ektron.Cms.Common.EkEnumeration.ActivityObjectType.Custom; //System.Enum.Parse(GetType(EkEnumeration.ActivityObjectType), ddlType.SelectedValue) data.ActionType = Ektron.Cms.Common.EkEnumeration.ActivityActionType.All; //ddlActionType.SelectedIndex data.Scope = (EkEnumeration.ActivityScope)Enum.ToObject(typeof(EkEnumeration.ActivityScope), (int)ddlActionScope.SelectedIndex); try { _activityTypeApi.Add(data); } catch (Exception ex) { Response.Redirect((string)("../reterror.aspx?info=" + EkFunctions.UrlEncode(ex.Message) + "&LangType=" + _refContentApi.GetCookieValue("LastValidLanguageID")), false); return; } Response.Redirect("activitytypes.aspx?mode=viewgrid"); } else { BindEntryValues(); rowObjecttype.Visible = false; rowActiontype.Visible = false; ddlType.Visible = false; ddlActionType.Visible = false; } }