private void ShowActionEdit(int actionId) { if (actionId >= 0) { _action = new Arena.Custom.CCV.Data.Action(actionId); } else { _action = new Arena.Custom.CCV.Data.Action(); _action.Guid = Guid.Empty; } // Load Action Types ddlActions.Items.Clear(); foreach (KeyValuePair <string, Type> type in Arena.Utility.ArenaReflection.GetTypes(typeof(DataUpdateAction))) { ListItem item = new ListItem(type.Key, type.Value.AssemblyQualifiedName); if (_action.DataUpdateAction != null) { item.Selected = _action.DataUpdateAction.GetType().Equals(type.Value); } ddlActions.Items.Add(item); } tbActionName.Text = _action.Name; tbActionDescription.Text = _action.Description; BuildActionSettings(true); hdnActionID.Value = _action.ActionId.ToString(); mpEditAction.Show(); }
protected string FormatAction(int actionId) { Arena.Custom.CCV.Data.Action action = new Arena.Custom.CCV.Data.Action(actionId); if (action != null) { return(FormatType(action.ActionAssembly)); } else { return(string.Empty); } }
protected void Page_Load(object sender, System.EventArgs e) { if (!Page.IsPostBack) { ShowList(); } if (hdnActionID.Value != string.Empty) { _action = new Arena.Custom.CCV.Data.Action(Convert.ToInt32(hdnActionID.Value)); BuildActionSettings(false); mpEditAction.Show(); } }
private void BuildActionSettings(Arena.Custom.CCV.Data.Action action, bool setValues) { sgActionSettings.BuildSettings(0, action.GetSettingAttributes(), setValues); }