Exemplo n.º 1
0
 protected void btnSave_Click(object sender, System.EventArgs e)
 {
     Mediachase.IBN.Business.ListInfoBus.UpdateListAccess(iListId, (DataTable)ViewState["ACL"]);
     if (String.IsNullOrEmpty(CommandName))
     {
         CHelper.CloseIt(Response);
     }
     else
     {
         CommandParameters cp = new CommandParameters(CommandName);
         Mediachase.Ibn.Web.UI.WebControls.CommandHandler.GetCloseOpenedFrameScript(this.Page, cp.ToString());
     }
 }
Exemplo n.º 2
0
        protected void PublishButton_ServerClick(object sender, EventArgs e)
        {
            Page.Validate();
            if (!Page.IsValid || NodeIdField.Value == String.Empty)
            {
                return;
            }

            int order;

            if (!int.TryParse(ItemOrder.Text, out order))
            {
                order = 10000;
            }

            string   url = CHelper.GetLinkEntityList(ClassName);
            ListInfo li  = ListManager.GetListInfoByMetaClassName(ClassName);

            NavigationManager.AddNavigationItemForList(NodeIdField.Value, order, ItemText.Text, url, (int)li.PrimaryKeyId.Value);

            CHelper.CloseIt(Response);
        }