Exemplo n.º 1
0
        public Arizona()
            : base("AZ")
        {
            var dl = new Rchar[9];
            dl[0] = new LimitedRchar(0, 'A', 'B', 'D', 'Y');
            Array.Copy(Numerics(8,1), 0, dl, 1, 8);

            dlFormats = new[] { new DriversLicense(dl, this), new DriversLicense(Numerics(9), this) };
        }
Exemplo n.º 2
0
 public RhodeIsland()
     : base("RI")
 {
     var dl = new Rchar[7];
     dl[0] = new LimitedRchar(0, 'V');
     Array.Copy(Numerics(6,1),0,dl,1,6);
     dlFormats = new[] {new DriversLicense(dl, this), new DriversLicense(Numerics(7), this) };
 }
Exemplo n.º 3
0
 public Oklahoma()
     : base("OK")
 {
     var dl = new Rchar[10];
     dl[0] = new LimitedRchar(0,
         'A',
         'B',
         'C',
         'D',
         'E',
         'F',
         'G',
         'H',
         'J',
         'K',
         'L',
         'M',
         'N',
         'P',
         'R',
         'S',
         'T',
         'U',
         'V',
         'W',
         'Y',
         'Z');//no 'I','O', 'X' nor 'Q'
     Array.Copy(Numerics(9,1),0,dl,1,9);
     dlFormats = new[] {new DriversLicense(dl, this), new DriversLicense(Numerics(9), this) };
 }
Exemplo n.º 4
0
        public NewHampshire()
            : base("NH")
        {
            var dl = new Rchar[10];
            dl[0] = new NumericRchar(0);
            dl[1] = new NumericRchar(1);
            dl[2] = new UAlphaRchar(2);
            dl[3] = new UAlphaRchar(3);
            dl[4] = new UAlphaRchar(4);
            Array.Copy(Numerics(4, 5), 0, dl, 5, 4);
            dl[9] = new LimitedRchar(9,'1','2','3','4','5','6','7','8','9');//no zero

            dlFormats = new[] {new DriversLicense(dl, this) };
        }
Exemplo n.º 5
0
        public Massachusetts()
            : base("MA")
        {
            var dl = new Rchar[9];
            dl[0] = new LimitedRchar(0,
                'A',
                'B',
                'C',
                'D',
                'E',
                'F',
                'G',
                'H',
                'I',
                'J',
                'K',
                'L',
                'M',
                'N',
                'O',
                'P',
                'Q',
                'R',
                'S',
                'T',
                'U',
                'V',
                'W',
                'Y',
                'Z');// no 'X'
            Array.Copy(Numerics(8, 1), 0, dl, 1, 8);

            dlFormats = new[] { new DriversLicense(dl, this), new DriversLicense(Numerics(9), this) };
        }
Exemplo n.º 6
0
        public Michigan()
            : base("MI")
        {
            var dl = new Rchar[13];
            dl[0] = new UAlphaRchar(0);
            dl[1] = new LimitedRchar(1, '1', '2', '3', '4', '5', '6');
            dl[2] = new LimitedRchar(1, '1', '2', '3', '4', '5', '6');
            dl[3] = new LimitedRchar(1, '1', '2', '3', '4', '5', '6');
            Array.Copy(Numerics(9, 4), 0, dl, 4, 9);

            dlFormats = new[] { new DriversLicense(dl, this) };
        }
Exemplo n.º 7
0
        public Hawaii()
            : base("HI")
        {
            var dl = new Rchar[9];
            dl[0] = new LimitedRchar(0,'H');
            Array.Copy(Numerics(8, 1), 0, dl, 1, 8);

            dlFormats = new[] { new DriversLicense(dl, this), new DriversLicense(Numerics(9), this) };
        }
Exemplo n.º 8
0
        public WestVirginia()
            : base("WV")
        {
            var dl = new Rchar[7];
            dl[0] = new LimitedRchar(0,'A','B','C','D','E','F','I','S','0','1','X');
            Array.Copy(Numerics(6,1),0,dl,1,6);

            dlFormats = new[] {new DriversLicense(dl, this) };
        }
Exemplo n.º 9
0
        public Washington()
            : base("WA")
        {
            var dl = new Rchar[12];
            dl[0] = new UAlphaRchar(0);
            dl[1] = new UAlphaRchar(1);
            dl[2] = new UAlphaRchar(2);
            dl[3] = new UAlphaRchar(3);
            dl[4] = new UAlphaRchar(4);
            dl[5] = new UAlphaRchar(5);
            dl[6] = new UAlphaRchar(6);
            dl[7] = new AlphaNumericRchar(7);
            dl[8] = new NumericRchar(8);
            dl[9] = new LimitedRchar(9,'*');
            dl[10] = new AlphaNumericRchar(10);
            dl[11] = new AlphaNumericRchar(11);

            dlFormats = new[] {new DriversLicense(dl, this) };
        }
Exemplo n.º 10
0
        public Vermont()
            : base("VT")
        {
            var dl = new Rchar[8];
            Array.Copy(Numerics(7),0,dl,0,7);
            dl[7] = new LimitedRchar(7,'A');

            dlFormats = new[] {new DriversLicense(dl, this), new DriversLicense(Numerics(8), this) };
        }
Exemplo n.º 11
0
        public Connecticut()
            : base("CT")
        {
            var dl = new Rchar[9];
            dl[0] = new LimitedRchar(0,'0');
            dl[1] = new LimitedRchar(1, '1', '2', '3', '4', '5', '6', '7', '8', '9');
            Array.Copy(Numerics(7, 2), 0, dl, 2, 7);
            var dlf00 = new DriversLicense(dl, this);

            dl = new Rchar[9];
            dl[0] = new LimitedRchar(0, '1');
            Array.Copy(Numerics(8, 1), 0, dl, 1, 8);
            var dlf01 = new DriversLicense(dl, this);

            dl = new Rchar[9];
            dl[0] = new LimitedRchar(0, '2');
            dl[1] = new LimitedRchar(1, '0', '1', '2', '3', '4');
            Array.Copy(Numerics(7, 2), 0, dl, 2, 7);
            var dlf02 = new DriversLicense(dl, this);

            dlFormats = new[] {dlf00, dlf01, dlf02};
        }