コード例 #1
0
        public void AddNode(ref Node n, RecentBlock.NodeAction action)
        {
            RecentBlock block    = null;
            bool        contains = false;

            for (int i = 0; i < recentblocks.Count; i++)
            {
                if (recentblocks[i].nodeAction == action)
                {
                    block = recentblocks[i];
                }
                if (recentblocks[i].nodeAction == RecentBlock.NodeAction.Opened)
                {
                    continue;
                }
                for (int j = 0; j < recentblocks[i].Nodes.Count; j++)
                {
                    if (recentblocks[i].Nodes[j].Node.Name == n.Name)
                    {
                        contains = true;
                    }
                }
            }

            if (contains == false)
            {
                if (block != null)
                {
                    block.AddNode(n);
                }
            }
        }
コード例 #2
0
        internal void MouseDown(Point location)
        {
            RecentBlock b = GetRecentBlock(location);

            if (b != null)
            {
                b.MouseDown(location);
            }
        }
コード例 #3
0
        internal void MouseWheel(int delta, Point p)
        {
            RecentBlock b = GetRecentBlock(p);

            if (b != null)
            {
                b.MouseWheel(delta);
            }
        }