示例#1
0
        private List <EventPair> GetHashes(char[,] Matrix)
        {
            var Hashes = new List <EventPair>();

            for (int i = 0; i < T_W.Count(); i++)
            {
                for (int j = 0; j < T_W.Count(); j++)
                {
                    if (Matrix[i, j] == '#')
                    {
                        Hashes.Add(new EventPair {
                            Left = new List <Event> {
                                T_W.ElementAt(i)
                            }, Right = new List <Event> {
                                T_W.ElementAt(j)
                            }
                        });
                    }
                }
            }
            return(Hashes);
        }
示例#2
0
        private List <EventPair> GetForwards(char[,] Matrix)
        {
            var x_w = new List <EventPair>();

            for (int i = 0; i < T_W.Count(); i++)
            {
                for (int j = 0; j < T_W.Count(); j++)
                {
                    if (Matrix[i, j] == '>')
                    {
                        x_w.Add(new EventPair {
                            Left = new List <Event> {
                                T_W.ElementAt(i)
                            }, Right = new List <Event> {
                                T_W.ElementAt(j)
                            }
                        });
                    }
                }
            }

            return(x_w);
        }