Exemplo n.º 1
0
        private void PopupTxn(string action, bool autoExec, Dictionary <string, string> fields)
        {
            MenuItemFactory  mif = new MenuItemFactory();
            AbstractMenuItem mi  = mif.ItemForContentCode(this.UserContext, action);

            if (Page.Master is Site)
            {
                Site Master = (Site)Page.Master;
                Master.LaunchMenuItem(mi, action, string.Empty, true, false, false, autoExec, fields);
            }

            else
            {
                SiteNewPage Master = (SiteNewPage)Page.Master;
                Master.LaunchMenuItem(mi, action, string.Empty, true, false, false, autoExec, fields);
            }
        }