Exemplo n.º 1
0
        protected void CheckDots()
        {
            Dictionary <int, string> list = new Dictionary <int, string>();

            this.dotsFlag = MenuDots.None;

            MenuItemsProvider itemsProvider = new MenuItemsProvider(this.graphController, NodePart.NorthEast, this.NodeId);

            list = itemsProvider.GetMenuItems();
            if (list.Count > 0)
            {
                this.dotsFlag |= MenuDots.NorthEast;
            }

            list          = new Dictionary <int, string>();
            itemsProvider = new MenuItemsProvider(this.graphController, NodePart.North, this.NodeId);
            list          = itemsProvider.GetMenuItems();
            if (list.Count >= 1)
            {
                this.dotsFlag |= MenuDots.North;
            }

            list          = new Dictionary <int, string>();
            itemsProvider = new MenuItemsProvider(this.graphController, NodePart.NorthWest, this.NodeId);
            list          = itemsProvider.GetMenuItems();
            if (list.Count != 0)
            {
                this.dotsFlag |= MenuDots.NorthWest;
            }

            list          = new Dictionary <int, string>();
            itemsProvider = new MenuItemsProvider(this.graphController, NodePart.South, this.NodeId);
            list          = itemsProvider.GetMenuItems();
            if (list.Count > 0)
            {
                this.dotsFlag |= MenuDots.South;
            }

            this.dotsFlag |= MenuDots.DotsFlag;
        }
Exemplo n.º 2
0
        protected void CheckDots()
        {
            Dictionary<int, string> list = new Dictionary<int, string>();
            this.dotsFlag = MenuDots.None;

            MenuItemsProvider itemsProvider = new MenuItemsProvider(this.graphController, NodePart.NorthEast, this.NodeId);
            list = itemsProvider.GetMenuItems();
            if (list.Count > 0)
                this.dotsFlag |= MenuDots.NorthEast;

            list = new Dictionary<int, string>();
            itemsProvider = new MenuItemsProvider(this.graphController, NodePart.North, this.NodeId);
            list = itemsProvider.GetMenuItems();
            if (list.Count >= 1)
                this.dotsFlag |= MenuDots.North;

            list = new Dictionary<int, string>();
            itemsProvider = new MenuItemsProvider(this.graphController, NodePart.NorthWest, this.NodeId);
            list = itemsProvider.GetMenuItems();
            if (list.Count != 0)
                this.dotsFlag |= MenuDots.NorthWest;

            list = new Dictionary<int, string>();
            itemsProvider = new MenuItemsProvider(this.graphController, NodePart.South, this.NodeId);
            list = itemsProvider.GetMenuItems();
            if (list.Count > 0)
                this.dotsFlag |= MenuDots.South;

            this.dotsFlag |= MenuDots.DotsFlag;
        }