コード例 #1
0
        protected void MainGrid_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            if (e == null)
            {
                throw new ArgumentNullException("e");
            }

            if (e.CommandName == "Reset")
            {
                int roleId = int.Parse(MainGrid.DataKeys[int.Parse(e.CommandArgument.ToString(), CultureInfo.InvariantCulture)].Value.ToString());
                StateMachineUtil.UnregisterObjectRole(mc.Name, roleId, int.Parse(StateMachineList.SelectedValue, CultureInfo.InvariantCulture), int.Parse(StateList.SelectedValue, CultureInfo.InvariantCulture));
            }
            CHelper.AddToContext("RebindPage", "true");
        }