Ejemplo n.º 1
0
        public TrafficSign(string uniqueString, string stringDateTime)
        {
            char[] charArrUniqueString = string.Join(string.Empty, uniqueString).ToCharArray();
            this.numberOfSubNotes = calcNotesSize(charArrUniqueString);
            this.strPerSubNotes   = new String[this.numberOfSubNotes];
            this.subNotes         = new SubNotesTS[this.numberOfSubNotes];
            this.uniqueString     = uniqueString;
            this.getStrSubNotes(uniqueString);

            for (int i = 0; i < this.numberOfSubNotes; i++)
            {
                subNotes[i] = new SubNotesTS(strPerSubNotes[i], stringDateTime);
            }
        }
Ejemplo n.º 2
0
        public SubNotesTS getSuitableSubNotes()
        {
            SubNotesTS neededSubNotes = null;

            for (int i = 0; i < numberOfSubNotes; i++)
            {
                if (this.subNotes[i].OverlapBetweenCurrTime)
                {
                    neededSubNotes = this.subNotes[i];
                }
            }

            return(neededSubNotes);
        }