Example #1
0
        public SubbandPrecinct GetSubbandPrecinct(Subband subband)
        {
            // TODO: Add support for precincts
            var subbandPrecinct = SubbandPrecincts.FirstOrDefault(o => o.Subband == subband);

            if (subbandPrecinct == null)
            {
                subbandPrecinct = new SubbandPrecinct(this, subband, new Precinct());
                SubbandPrecincts.Add(subbandPrecinct);
            }
            return(subbandPrecinct);
        }
Example #2
0
 public CodeBlock(SubbandPrecinct subbandPrecinct, Rectangle bounds)
     : this(subbandPrecinct.Subband, bounds)
 {
     SubbandPrecinct = subbandPrecinct;
 }