Exemplo n.º 1
0
        protected void NavigationMenu_Init(object sender, EventArgs e)
        {
            try
            {
                var menu     = (ASPxMenu)sender;
                var rootItem = Utils.NavigationItems.First(i => i.AccessObjectGroupId.ToLower()
                                                           == ((IERPCoreWebModuleBase)Page).AccessObjectGroupId.ToLower());
                string cssClass     = String.Format("{0} {1}", rootItem.SpriteClassName, Utils.IsDarkTheme ? "DarkTheme" : "LightTheme");
                var    rootMenuItem = new DevExpress.Web.ASPxMenu.MenuItem();
                menu.Items.Add(rootMenuItem);
                rootMenuItem.Text = rootItem.Text;
                rootMenuItem.Image.SpriteProperties.CssClass       = cssClass;
                rootMenuItem.PopOutImage.SpriteProperties.CssClass = "Sprite_Arrow";

                foreach (var item in Utils.NavigationItems)
                {
                    var menuItem = new DevExpress.Web.ASPxMenu.MenuItem();
                    rootMenuItem.Items.Add(menuItem);
                    menuItem.Text        = item.Text;
                    menuItem.NavigateUrl = item.NavigationUrl;
                    menuItem.Selected    = item == rootItem;
                }
                menu.ShowPopOutImages = DefaultBoolean.True;
            }
            catch (Exception)
            {
            }
        }
Exemplo n.º 2
0
        protected void ASPxScheduler1_PopupMenuShowing(object sender, DevExpress.Web.ASPxScheduler.PopupMenuShowingEventArgs e)
        {
            ASPxSchedulerPopupMenu menu = e.Menu;

            DevExpress.Web.ASPxMenu.MenuItemCollection menuItems = menu.Items;
            if (menu.Id.Equals(SchedulerMenuItemId.DefaultMenu))
            {
                ClearUnusedDefaultMenuItems(menu);
                menu.ClientSideEvents.ItemClick = String.Format("function(s, e) {{ DefaultAppointmentMenuHandler({0}, s, e); }}", Scheduler.ClientID);

                menu.Items.Clear();
                DevExpress.Web.ASPxMenu.MenuItem addTask = new DevExpress.Web.ASPxMenu.MenuItem("Add new task", "AddTaskId");
                addTask.BeginGroup = true;
                menuItems.Add(addTask);
            }
            else if (menu.Id.Equals(SchedulerMenuItemId.AppointmentMenu))
            {
                //menu.ClientSideEvents.ItemClick = String.Format("function(s, e) {{ DefaultAppointmentMenuHandler({0}, s, e); }}", ASPxScheduler1.ClientID);
                menu.Items.Clear();
                //AddScheduleNewEventSubMenu(menu, "Change Event");
                //MenuItem addTask = new MenuItem("AddTask", "AddTaskId");
                //addTask.BeginGroup = true;
                //menuItems.Add(addTask);
            }
        }
Exemplo n.º 3
0
 public void InstantiateIn(Control container)
 {
     DevExpress.Web.ASPxMenu.MenuItemTemplateContainer c = container as DevExpress.Web.ASPxMenu.MenuItemTemplateContainer;
     DevExpress.Web.ASPxMenu.MenuItem item = c.Item;
     if (String.IsNullOrEmpty(item.NavigateUrl))
     {
         Literal l = new Literal {
             Text = item.Text
         };
         c.Controls.Add(l);
     }
     else if (c.Item.HasChildren)
     {
         string itemText = String.Format("<div onclick=\"javascript:PageRedirectTo(event,\'{0}\')\">{1}</div>",
                                         c.ResolveUrl(item.NavigateUrl), item.Text);
         Literal l = new Literal {
             Text = itemText
         };
         c.Controls.Add(l);
     }
     else
     {
         HyperLink a = new HyperLink {
             NavigateUrl = item.NavigateUrl,
             Text        = item.Text
         };
         c.Controls.Add(a);
     }
 }
Exemplo n.º 4
0
 protected void RemoveMenuItem(ASPxSchedulerPopupMenu menu, string menuItemName)
 {
     DevExpress.Web.ASPxMenu.MenuItem item = menu.Items.FindByName(menuItemName);
     if (item != null)
     {
         menu.Items.Remove(item);
     }
 }
Exemplo n.º 5
0
        //protected void AddScheduleNewEventSubMenu(ASPxSchedulerPopupMenu menu, string caption)
        //{
        //    MenuItem newWithTemplateItem = new MenuItem(caption, "TemplateEvents");
        //    newWithTemplateItem.BeginGroup = true;
        //    menu.Items.Insert(0, newWithTemplateItem);
        //    AddTemplatesSubMenuItems(newWithTemplateItem);
        //}

        private static void AddTemplatesSubMenuItems(DevExpress.Web.ASPxMenu.MenuItem parentMenuItem)
        {
            parentMenuItem.Items.Add(new DevExpress.Web.ASPxMenu.MenuItem("SubMenu1Id", "SubMenu1Id"));
            parentMenuItem.Items.Add(new DevExpress.Web.ASPxMenu.MenuItem("SubMenu2Id", "SubMenu2Id"));
            parentMenuItem.Items.Add(new DevExpress.Web.ASPxMenu.MenuItem("SubMenu3Id", "SubMenu3Id"));
            parentMenuItem.Items.Add(new DevExpress.Web.ASPxMenu.MenuItem("SubMenu4Id", "SubMenu4Id"));
            parentMenuItem.Items.Add(new DevExpress.Web.ASPxMenu.MenuItem("SubMenu5Id", "SubMenu5Id"));
        }
Exemplo n.º 6
0
     protected void AddScheduleNewEventSubMenu(ASPxSchedulerPopupMenu menu,
 string caption)
     {
         DevExpress.Web.ASPxMenu.MenuItem newWithTemplateItem = new DevExpress.Web.ASPxMenu.MenuItem(caption, "TemplateEvents");
         newWithTemplateItem.BeginGroup = true;
         menu.Items.Insert(0, newWithTemplateItem);
         AddTemplatesSubMenuItems(newWithTemplateItem);
     }
Exemplo n.º 7
0
        public static void ConstruirMenu(ASPxMenu menu, string usuarioID)
        {
            menu.Items.Clear();

            DevExpress.Web.ASPxMenu.MenuItem ItemPrincipal = new DevExpress.Web.ASPxMenu.MenuItem();

            ItemPrincipal.Text = "Início";

            ItemPrincipal.NavigateUrl = "~/Principal.aspx";

            menu.Items.Add(ItemPrincipal);

            string sql = "SELECT MENU.MEN_ISN,MEN_NOME, MEN_PAI, MEN_ARQ FROM SCI_MENU MENU join sci_menu_modulos MMOD ON MMOD.men_isn = MENU.men_isn " +
                            "JOIN sci_modulos MOD ON MOD.mod_isn = MMOD.mod_isn "+
                            "JOIN sci_user_acessos ACE ON ACE.mmo_isn = MMOD.mmo_isn "+
                            "JOIN sci_usuarios USU ON USU.usu_codigo = ACE.usu_codigo "+
                            "WHERE USU.usu_codigo = " + usuarioID + " AND MOD.mod_isn = 8 AND MEN_PAI IS NULL ORDER BY MENU.ORDEM ";

            DataTable table =  AcessoDados.AcessoDados.dtable(sql);
            foreach( DataRow dr in table.Rows){
                DevExpress.Web.ASPxMenu.MenuItem Item = new DevExpress.Web.ASPxMenu.MenuItem();

                Item.Text = dr["MEN_NOME"].ToString();

                menu.Items.Add(Item);

                string men_isn = dr["MEN_ISN"].ToString();

                if (men_isn.Equals("1")) {
                    men_isn = "127";
                }

                string sql2 = "SELECT MEN_NOME, MEN_PAI, MEN_ARQ from "+
                                "sci_user_acessos ACE join sci_menu_modulos MMO ON MMO.mmo_isn = ACE.mmo_isn "+
                                "JOIN SCI_MENU MEM ON MEM.men_isn = MMO.men_isn "+
                                "join sci_usuarios USU ON USU.usu_codigo = ACE.usu_codigo "+
                                "JOIN sci_modulos MOD ON MOD.mod_isn = MMO.mod_isn "+
                                "WHERE "+
                                "USU.usu_codigo = " + usuarioID + " AND MOD.mod_isn = 8 AND MEN_PAI IS NOT NULL AND MEN_PAI = " + men_isn +
                                " ORDER BY ORDEM";

                DataTable tableSub = AcessoDados.AcessoDados.dtable(sql2);
                foreach (DataRow row in tableSub.Rows) {
                    DevExpress.Web.ASPxMenu.MenuItem categoryItem = new DevExpress.Web.ASPxMenu.MenuItem(row["MEN_NOME"].ToString(), row["MEN_NOME"].ToString());
                    categoryItem.NavigateUrl = "~/Views/" + row["MEN_ARQ"].ToString();
                    Item.Items.Add(categoryItem);
                }
            }

            DevExpress.Web.ASPxMenu.MenuItem ItemSair = new DevExpress.Web.ASPxMenu.MenuItem();

            ItemSair.Text = "Sair";

            ItemSair.NavigateUrl = "~/Default1.aspx";

            menu.Items.Add(ItemSair);
        }
Exemplo n.º 8
0
 public ASPxMenuItemChoiceActionItem(SingleChoiceAction action, ChoiceActionItem item)
     : base(item, action)
 {
     _currentAction  = action;
     CurrentMenuItem = new MenuItem {
         Name = item.GetIdPath()
     };
     SyncronizeWithItem();
 }
Exemplo n.º 9
0
        int INavigationControlTestable.GetSubGroupCount(ChoiceActionItem item)
        {
            MenuItem group = FindMenuGroupControl(item);

            if (group != null && group.Items.Count > 0)
            {
                return(group.Items[0].Items.Count);
            }
            return(0);
        }
Exemplo n.º 10
0
 private DevExpress.Web.ASPxMenu.MenuItem CreateMenuItem(DataRow row)
 {
     DevExpress.Web.ASPxMenu.MenuItem ret = new DevExpress.Web.ASPxMenu.MenuItem();
     ret.Text = row["fchrFrmText"].ToString();
     if (row["fPath"].ToString() != "")
     {
         ret.NavigateUrl = "../" + row["fPath"].ToString();
     }
     //ret.Image.Url = row["ImageUrl"].ToString();
     return(ret);
 }
Exemplo n.º 11
0
 private void UpdateSelection()
 {
     ASPxMenuControl.SelectedItem = null;
     if (SingleChoiceAction != null && SingleChoiceAction.SelectedItem != null)
     {
         ChoiceActionItem actionItem = SingleChoiceAction.SelectedItem;
         if (ActionItemToMenuItemMap.ContainsKey(actionItem))
         {
             MenuItem itemLink = ActionItemToMenuItemMap[actionItem];
             ASPxMenuControl.SelectedItem = itemLink;
         }
     }
 }
Exemplo n.º 12
0
    protected void BuildMenu(ASPxMenu menu, bool enableRoles)
    {
        // Get DataView
        DataSourceSelectArguments arg = new DataSourceSelectArguments();

        DataTable dt = List();

        DataRow[] row = dt.Select("fchrFrmUpName='O'", "fIntOrderID");
        for (int i = 0; i < row.Length; i++)
        {
            DevExpress.Web.ASPxMenu.MenuItem item = new DevExpress.Web.ASPxMenu.MenuItem();
            string fchrFrmNameID = row[i]["fchrFrmNameID"].ToString();
            string parentID      = row[i]["fchrFrmUpName"].ToString();
            string fPath         = row[i]["fPath"].ToString();
            string fchrFrmText   = row[i]["fchrFrmText"].ToString();
            string fchrNameSpace = row[i]["fchrNameSpace"].ToString();
            item.Text = fchrFrmText;
            if (fPath != "")
            {
                item.NavigateUrl = "../" + fPath;
            }
            item.Name = fchrNameSpace;
            menu.Items.Add(item);
            CreateMenuItem(dt, item);
        }
        // Build Menu Items
        //Dictionary<string, DevExpress.Web.ASPxMenu.MenuItem> menuItems =
        //    new Dictionary<string, DevExpress.Web.ASPxMenu.MenuItem>();

        //for (int i = 0; i < dataView.Count; i++)
        //{
        //    DataRow row = dataView[i].Row;


        //    DevExpress.Web.ASPxMenu.MenuItem item = CreateMenuItem(row);
        //    string itemID = row["fchrFrmNameID"].ToString();
        //    string parentID = row["fchrFrmUpName"].ToString();

        //    if (menuItems.ContainsKey(parentID))
        //    {
        //        menuItems[parentID].Items.Add(item);

        //    }
        //    else
        //    {

        //        menu.Items.Add(item);
        //    }
        //    menuItems.Add(itemID, item);
        //}
    }
Exemplo n.º 13
0
 public ASPxMenuGroupChoiceActionItem(SingleChoiceAction action, ChoiceActionItem item)
     : base(item, action){
     _currentMenuGroup = new MenuItem();
     if (action.Items.IndexOf(item) == 0){
         //CurrentMenuGroup.HeaderStyle.CssClass += " FirstHeader";
         //CurrentMenuGroup.HeaderStyleCollapsed.CssClass = " FirstHeaderCollapsed";
     }
     if (action.Items.IndexOf(item) == action.Items.Count - 1){
         //CurrentMenuGroup.HeaderStyle.CssClass = " LastHeader";
         //CurrentMenuGroup.HeaderStyleCollapsed.CssClass = " LastHeaderCollapsed";
     }
     //CurrentMenuGroup.Expanded = false;
     SyncronizeWithItem();
 }
Exemplo n.º 14
0
 private void FillMenuGroup(MenuItem group, ChoiceActionItem groupValue)
 {
     foreach (ChoiceActionItem itemValue in groupValue.Items)
     {
         if (!itemValue.Active)
         {
             continue;
         }
         var itemWrapper = new ASPxMenuItemChoiceActionItem(SingleChoiceAction, itemValue);
         MenuItemToWrapperMap.Add(itemWrapper.CurrentMenuItem, itemWrapper);
         group.Items.Add(itemWrapper.CurrentMenuItem);
         ActionItemToMenuItemMap.Add(itemValue, itemWrapper.CurrentMenuItem);
     }
 }
Exemplo n.º 15
0
 public ASPxMenuGroupChoiceActionItem(SingleChoiceAction action, ChoiceActionItem item)
     : base(item, action)
 {
     _currentMenuGroup = new MenuItem();
     if (action.Items.IndexOf(item) == 0)
     {
         //CurrentMenuGroup.HeaderStyle.CssClass += " FirstHeader";
         //CurrentMenuGroup.HeaderStyleCollapsed.CssClass = " FirstHeaderCollapsed";
     }
     if (action.Items.IndexOf(item) == action.Items.Count - 1)
     {
         //CurrentMenuGroup.HeaderStyle.CssClass = " LastHeader";
         //CurrentMenuGroup.HeaderStyleCollapsed.CssClass = " LastHeaderCollapsed";
     }
     //CurrentMenuGroup.Expanded = false;
     SyncronizeWithItem();
 }
Exemplo n.º 16
0
        int INavigationControlTestable.GetSubItemsCount(ChoiceActionItem item)
        {
            if (ActionItemToMenuItemMap.ContainsKey(item))
            {
                return(0);
            }

            if (ActionItemToMenuGroupMap.ContainsKey(item))
            {
                MenuItem menuGroup = ActionItemToMenuGroupMap[item];
                if (menuGroup.Items.Count > 0)
                {
                    return(menuGroup.Items[0].Items.Count);
                }
                return(ActionItemToMenuGroupMap[item].Items.Count);
            }
            return(0);
        }
Exemplo n.º 17
0
 private void CreateMenuItem(DataTable dt, DevExpress.Web.ASPxMenu.MenuItem itemparent)
 {
     DataRow[] row = dt.Select("fchrFrmUpName='" + itemparent.Name + "'", "fIntOrderID");
     for (int i = 0; i < row.Length; i++)
     {
         DevExpress.Web.ASPxMenu.MenuItem item = new DevExpress.Web.ASPxMenu.MenuItem();
         string fchrFrmNameID = row[i]["fchrFrmNameID"].ToString();
         string parentID      = row[i]["fchrFrmUpName"].ToString();
         string fPath         = row[i]["fPath"].ToString();
         string fchrFrmText   = row[i]["fchrFrmText"].ToString();
         string fchrNameSpace = row[i]["fchrNameSpace"].ToString();
         item.Text = fchrFrmText;
         if (fPath != "")
         {
             item.NavigateUrl = "../" + fPath;
         }
         item.Name = fchrNameSpace;
         itemparent.Items.Add(item);
         //CreateMenuItem(dt, item);
     }
 }
Exemplo n.º 18
0
    protected void NavigationMenu_Init(object sender, EventArgs e)
    {
        var menu     = (ASPxMenu)sender;
        var rootItem = Utils.NavigationItems.First(i => i.Text.ToLower() == Utils.CurrentPageName.ToLower());

        var rootMenuItem = new DevExpress.Web.ASPxMenu.MenuItem();

        menu.Items.Add(rootMenuItem);
        rootMenuItem.Text = rootItem.Text;
        rootMenuItem.Image.SpriteProperties.CssClass       = rootItem.SpriteClassName;
        rootMenuItem.PopOutImage.SpriteProperties.CssClass = "Sprite_Arrow";

        foreach (var item in Utils.NavigationItems)
        {
            var menuItem = new DevExpress.Web.ASPxMenu.MenuItem();
            rootMenuItem.Items.Add(menuItem);
            menuItem.Text        = item.Text;
            menuItem.NavigateUrl = item.NavigationUrl;
            menuItem.Selected    = item == rootItem;
        }
        menu.ShowPopOutImages = DefaultBoolean.True;
    }
Exemplo n.º 19
0
        protected void ASPxScheduler1_PopupMenuShowing(object sender, DevExpress.Web.ASPxScheduler.PopupMenuShowingEventArgs e)
        {
            ASPxSchedulerPopupMenu menu = e.Menu;
            DevExpress.Web.ASPxMenu.MenuItemCollection menuItems = menu.Items;
            if (menu.Id.Equals(SchedulerMenuItemId.DefaultMenu))
            {
                ClearUnusedDefaultMenuItems(menu);
                menu.ClientSideEvents.ItemClick = String.Format("function(s, e) {{ DefaultAppointmentMenuHandler({0}, s, e); }}", Scheduler.ClientID);

                menu.Items.Clear();
                DevExpress.Web.ASPxMenu.MenuItem addTask = new DevExpress.Web.ASPxMenu.MenuItem("Add new task", "AddTaskId");
                addTask.BeginGroup = true;
                menuItems.Add(addTask);
            }
            else if (menu.Id.Equals(SchedulerMenuItemId.AppointmentMenu))
            {
                //menu.ClientSideEvents.ItemClick = String.Format("function(s, e) {{ DefaultAppointmentMenuHandler({0}, s, e); }}", ASPxScheduler1.ClientID);
                menu.Items.Clear();
                //AddScheduleNewEventSubMenu(menu, "Change Event");
                //MenuItem addTask = new MenuItem("AddTask", "AddTaskId");
                //addTask.BeginGroup = true;
                //menuItems.Add(addTask);
            }
        }
Exemplo n.º 20
0
        private void FillMenuContents(MenuItemCollection holderMenuItems, ChoiceActionItemCollection actionItems)
        {
            foreach (ChoiceActionItem groupValue in actionItems)
            {
                if (!groupValue.Active)
                {
                    continue;
                }

                if (groupValue.Items.Count == 0)
                {
                    var itemWrapper = new ASPxMenuItemChoiceActionItem(SingleChoiceAction,
                                                                       groupValue);
                    MenuItemToWrapperMap.Add(itemWrapper.CurrentMenuItem, itemWrapper);
                    holderMenuItems.Add(itemWrapper.CurrentMenuItem);
                    ActionItemToMenuItemMap.Add(groupValue, itemWrapper.CurrentMenuItem);
                }
                else
                {
                    var groupItem = new ASPxMenuGroupChoiceActionItem(SingleChoiceAction,
                                                                      groupValue);
                    GroupWrappers.Add(groupItem);
                    MenuItem group = groupItem.MenuGroup;
                    ActionItemToMenuGroupMap.Add(groupValue, group);
                    holderMenuItems.Add(group);
                    var itemsDisplayStyle = ItemsDisplayStyle.LargeIcons;
                    if (groupValue.Model != null)
                    {
                        itemsDisplayStyle = ItemsDisplayStyle.List;
                        if (groupValue.Model is IModelChoiceActionItemChildItemsDisplayStyle)
                        {
                            itemsDisplayStyle =
                                ((IModelChoiceActionItemChildItemsDisplayStyle)groupValue.Model).ChildItemsDisplayStyle;
                        }
                    }
                    var args = new CreateCustomGroupControlEventArgs(groupValue);
                    OnCreateCustomGroupControl(args);
                    if (args.Control != null)
                    {
                        var customControlItem = new ASPxMenuCustomControlItem(args.Control);
                        customControlItem.InitTemplate();
                        group.Items.Add(customControlItem);
                    }
                    else
                    {
                        switch (itemsDisplayStyle)
                        {
                        case ItemsDisplayStyle.LargeIcons:
                        case ItemsDisplayStyle.List:
                            if (groupValue.IsHierarchical())
                            {
                                FillMenuContents(group.Items, groupValue.Items);
                            }
                            else
                            {
                                FillMenuGroup(group, groupValue);
                            }
                            break;
                        }
                    }
                }
            }
        }
Exemplo n.º 21
0
        public void BuildMenu(DevExpress.Web.ASPxMenu.ASPxMenu menu, string usuarioID, SqlDataSource dataSource)
        {
            dataSource.SelectCommand = "SELECT MENU.MEN_ISN, MEN_NOME, coalesce(MEN_PAI,0) MEN_PAI, MEN_ARQ FROM SCI_MENU MENU join sci_menu_modulos MMOD ON MMOD.men_isn = MENU.men_isn " +
                            "JOIN sci_modulos MOD ON MOD.mod_isn = MMOD.mod_isn " +
                            "JOIN sci_user_acessos ACE ON ACE.mmo_isn = MMOD.mmo_isn " +
                            "JOIN sci_usuarios USU ON USU.usu_codigo = ACE.usu_codigo " +
                            "WHERE USU.usu_codigo = " + usuarioID + " AND MOD.mod_isn = 8 order by menu.ordem";

            DataSourceSelectArguments arg = new DataSourceSelectArguments();
            DataView dataView = dataSource.Select(arg) as DataView;
            dataView.Sort = "MEN_PAI";

            Dictionary<string, DevExpress.Web.ASPxMenu.MenuItem> menuItems = new Dictionary<string, DevExpress.Web.ASPxMenu.MenuItem>();

            DevExpress.Web.ASPxMenu.MenuItem itemPrinc = new DevExpress.Web.ASPxMenu.MenuItem();
            itemPrinc.Text = "Início";
            itemPrinc.NavigateUrl = "~/Principal.aspx";
            menu.Items.Add(itemPrinc);

            for (int i = 0; i < dataView.Count; i++)
            {
                DataRow row = dataView[i].Row;
                DevExpress.Web.ASPxMenu.MenuItem item = CreateMenuItem(row);
                string itemID = row["MEN_ISN"].ToString();
                string parentID = row["MEN_PAI"].ToString();

                if (menuItems.ContainsKey(parentID))
                    menuItems[parentID].Items.Add(item);
                else
                {
                    if (parentID == "0")
                        item.NavigateUrl = "javascript:void();";
                        menu.Items.Add(item);
                }
                menuItems.Add(itemID, item);
            }

            DevExpress.Web.ASPxMenu.MenuItem itemSair = new DevExpress.Web.ASPxMenu.MenuItem();
            itemSair.Text = "Sair";
            itemSair.NavigateUrl = "~/Default1.aspx";
            menu.Items.Add(itemSair);
        }
Exemplo n.º 22
0
 private DevExpress.Web.ASPxMenu.MenuItem CreateMenuItem(DataRow row)
 {
     DevExpress.Web.ASPxMenu.MenuItem ret = new DevExpress.Web.ASPxMenu.MenuItem();
     ret.Text = row["MEN_NOME"].ToString();
     ret.NavigateUrl = "~/Views/" + row["MEN_ARQ"].ToString();
     return ret;
 }
Exemplo n.º 23
0
 private void FillMenuGroup(MenuItem group, ChoiceActionItem groupValue){
     foreach (ChoiceActionItem itemValue in groupValue.Items){
         if (!itemValue.Active){
             continue;
         }
         var itemWrapper = new ASPxMenuItemChoiceActionItem(SingleChoiceAction, itemValue);
         MenuItemToWrapperMap.Add(itemWrapper.CurrentMenuItem, itemWrapper);
         group.Items.Add(itemWrapper.CurrentMenuItem);
         ActionItemToMenuItemMap.Add(itemValue, itemWrapper.CurrentMenuItem);
     }
 }
Exemplo n.º 24
0
 public ASPxMenuItemChoiceActionItem(SingleChoiceAction action, ChoiceActionItem item)
     : base(item, action){
     _currentAction = action;
     CurrentMenuItem = new MenuItem{Name = item.GetIdPath()};
     SyncronizeWithItem();
 }