Ejemplo n.º 1
0
 public void ReadFrom(DataReader reader)
 {
     fLocalShowPath   = reader.ReadString("LocalShowPath", 500);
     fMaxSizeForShows = reader.ReadInt("MaxSizeForShows");
     fUserLogonID     = reader.ReadString("UserLogonID", 500);
     fUserPIN         = reader.ReadString("UserPIN", 500);
     fRememberUserPIN = reader.ReadBoolean("RememberUserPIN");
     fEnableLog       = reader.ReadBoolean("EnableLog");
     fNextProcessTime = reader.ReadDateTime("NextProcessTime");
 }
Ejemplo n.º 2
0
        private void test1()
        {
            var    x  = new TInt32(65);
            int    y  = 65;
            int    z  = 66;
            TInt32 xx = null;
            var    xy = new MyInt(65);
            var    xz = new TInt32(64);

            System.Console.WriteLine("x: {0}", x);
            System.Console.WriteLine("y: {0}", y);
            System.Console.WriteLine("z: {0}", z);
            System.Console.WriteLine("xx: {0}", xx);
            System.Console.WriteLine("xy: {0}", xy);
            System.Console.WriteLine("xz: {0}", xz);
            System.Console.WriteLine();

            System.Console.WriteLine("x == null\tresult: {0}\texpected: {1}", x == null, false);
            System.Console.WriteLine("x != null\tresult: {0}\texpected: {1}", x != null, true);
            System.Console.WriteLine("x > null\tresult: {0}\texpected: {1}", x > null, true);
            System.Console.WriteLine("x >= null\tresult: {0}\texpected: {1}", x >= null, true);
            System.Console.WriteLine("x < null\tresult: {0}\texpected: {1}", x < null, false);
            System.Console.WriteLine("x <= null\tresult: {0}\texpected: {1}", x <= null, false);
            System.Console.WriteLine();
            System.Console.WriteLine("x == 64\tresult: {0}\texpected: {1}", x == 64, false);
            System.Console.WriteLine("x != 64\tresult: {0}\texpected: {1}", x != 64, true);
            System.Console.WriteLine("x > 64\tresult: {0}\texpected: {1}", x > 64, true);
            System.Console.WriteLine("x >= 64\tresult: {0}\texpected: {1}", x >= 64, true);
            System.Console.WriteLine("x < 64\tresult: {0}\texpected: {1}", x < 64, false);
            System.Console.WriteLine("x <= 64\tresult: {0}\texpected: {1}", x <= 64, false);
            System.Console.WriteLine();
            System.Console.WriteLine("x == y\tresult: {0}\texpected: {1}", x == y, true);
            System.Console.WriteLine("x != y\tresult: {0}\texpected: {1}", x != y, false);
            System.Console.WriteLine("x > y\tresult: {0}\texpected: {1}", x > y, false);
            System.Console.WriteLine("x >= y\tresult: {0}\texpected: {1}", x >= y, true);
            System.Console.WriteLine("x < y\tresult: {0}\texpected: {1}", x < y, false);
            System.Console.WriteLine("x <= y\tresult: {0}\texpected: {1}", x <= y, true);
            System.Console.WriteLine();
            System.Console.WriteLine("x == z\tresult: {0}\texpected: {1}", x == z, false);
            System.Console.WriteLine("x != z\tresult: {0}\texpected: {1}", x != z, true);
            System.Console.WriteLine("x > z\tresult: {0}\texpected: {1}", x > z, false);
            System.Console.WriteLine("x >= z\tresult: {0}\texpected: {1}", x >= z, false);
            System.Console.WriteLine("x < z\tresult: {0}\texpected: {1}", x < z, true);
            System.Console.WriteLine("x <= z\tresult: {0}\texpected: {1}", x <= z, true);
            System.Console.WriteLine();
            System.Console.WriteLine("x == xx\tresult: {0}\texpected: {1}", x == xx, false);
            System.Console.WriteLine("x != xx\tresult: {0}\texpected: {1}", x != xx, true);
            System.Console.WriteLine("x > xx\tresult: {0}\texpected: {1}", x > xx, true);
            System.Console.WriteLine("x >= xx\tresult: {0}\texpected: {1}", x >= xx, true);
            System.Console.WriteLine("x < xx\tresult: {0}\texpected: {1}", x < xx, false);
            System.Console.WriteLine("x <= xx\tresult: {0}\texpected: {1}", x <= xx, false);
            System.Console.WriteLine();
            System.Console.WriteLine("x == xy\tresult: {0}\texpected: {1}", x == xy, true);
            System.Console.WriteLine("x != xy\tresult: {0}\texpected: {1}", x != xy, false);
            System.Console.WriteLine("x > xy\tresult: {0}\texpected: {1}", x > xy, false);
            System.Console.WriteLine("x >= xy\tresult: {0}\texpected: {1}", x >= xy, true);
            System.Console.WriteLine("x < xy\tresult: {0}\texpected: {1}", x < xy, false);
            System.Console.WriteLine("x <= xy\tresult: {0}\texpected: {1}", x <= xy, true);
            System.Console.WriteLine();
            System.Console.WriteLine("x == xz\tresult: {0}\texpected: {1}", x == xz, false);
            System.Console.WriteLine("x != xz\tresult: {0}\texpected: {1}", x != xz, true);
            System.Console.WriteLine("x > xz\tresult: {0}\texpected: {1}", x > xz, true);
            System.Console.WriteLine("x >= xz\tresult: {0}\texpected: {1}", x >= xz, true);
            System.Console.WriteLine("x < xz\tresult: {0}\texpected: {1}", x < xz, false);
            System.Console.WriteLine("x <= xz\tresult: {0}\texpected: {1}", x <= xz, false);
            System.Console.WriteLine();
            System.Console.WriteLine("null == x\tresult: {0}\texpected: {1}", null == x, false);
            System.Console.WriteLine("null != x\tresult: {0}\texpected: {1}", null != x, true);
            System.Console.WriteLine("null > x\tresult: {0}\texpected: {1}", null > x, false);
            System.Console.WriteLine("null >= x\tresult: {0}\texpected: {1}", null >= x, false);
            System.Console.WriteLine("null < x\tresult: {0}\texpected: {1}", null < x, true);
            System.Console.WriteLine("null <= x\tresult: {0}\texpected: {1}", null <= x, true);
            System.Console.WriteLine();
            System.Console.WriteLine("64 == x\tresult: {0}\texpected: {1}", 64 == x, false);
            System.Console.WriteLine("64 != x\tresult: {0}\texpected: {1}", 64 != x, true);
            System.Console.WriteLine("64 > x\tresult: {0}\texpected: {1}", 64 > x, false);
            System.Console.WriteLine("64 >= x\tresult: {0}\texpected: {1}", 64 >= x, false);
            System.Console.WriteLine("64 < x\tresult: {0}\texpected: {1}", 64 < x, true);
            System.Console.WriteLine("64 <= x\tresult: {0}\texpected: {1}", 64 <= x, true);
            System.Console.WriteLine();
            System.Console.WriteLine("65 == x\tresult: {0}\texpected: {1}", 65 == x, true);
            System.Console.WriteLine("65 != x\tresult: {0}\texpected: {1}", 65 != x, false);
            System.Console.WriteLine("65 > x\tresult: {0}\texpected: {1}", 65 > x, false);
            System.Console.WriteLine("65 >= x\tresult: {0}\texpected: {1}", 65 >= x, true);
            System.Console.WriteLine("65 < x\tresult: {0}\texpected: {1}", 65 < x, false);
            System.Console.WriteLine("65 <= x\tresult: {0}\texpected: {1}", 65 <= x, true);
            System.Console.WriteLine();
            System.Console.WriteLine("y == x\tresult: {0}\texpected: {1}", y == x, true);
            System.Console.WriteLine("y != x\tresult: {0}\texpected: {1}", y != x, false);
            System.Console.WriteLine("y > x\tresult: {0}\texpected: {1}", y > x, false);
            System.Console.WriteLine("y >= x\tresult: {0}\texpected: {1}", y >= x, true);
            System.Console.WriteLine("y < x\tresult: {0}\texpected: {1}", y < x, false);
            System.Console.WriteLine("y <= x\tresult: {0}\texpected: {1}", y <= x, true);
            System.Console.WriteLine();
            System.Console.WriteLine("z == x\tresult: {0}\texpected: {1}", z == x, false);
            System.Console.WriteLine("z != x\tresult: {0}\texpected: {1}", z != x, true);
            System.Console.WriteLine("z > x\tresult: {0}\texpected: {1}", z > x, true);
            System.Console.WriteLine("z >= x\tresult: {0}\texpected: {1}", z >= x, true);
            System.Console.WriteLine("z < x\tresult: {0}\texpected: {1}", z < x, false);
            System.Console.WriteLine("z <= x\tresult: {0}\texpected: {1}", z <= x, false);
            System.Console.WriteLine();
            System.Console.WriteLine("xx == x\tresult: {0}\texpected: {1}", xx == x, false);
            System.Console.WriteLine("xx != x\tresult: {0}\texpected: {1}", xx != x, true);
            System.Console.WriteLine("xx > x\tresult: {0}\texpected: {1}", xx > x, false);
            System.Console.WriteLine("xx >= x\tresult: {0}\texpected: {1}", xx >= x, false);
            System.Console.WriteLine("xx < x\tresult: {0}\texpected: {1}", xx < x, true);
            System.Console.WriteLine("xx <= x\tresult: {0}\texpected: {1}", xx <= x, true);
            System.Console.WriteLine();
            System.Console.WriteLine("xy == x\tresult: {0}\texpected: {1}", xy == x, true);
            System.Console.WriteLine("xy != x\tresult: {0}\texpected: {1}", xy != x, false);
            System.Console.WriteLine("xy > x\tresult: {0}\texpected: {1}", xy > x, false);
            System.Console.WriteLine("xy >= x\tresult: {0}\texpected: {1}", xy >= x, true);
            System.Console.WriteLine("xy < x\tresult: {0}\texpected: {1}", xy < x, false);
            System.Console.WriteLine("xy <= x\tresult: {0}\texpected: {1}", xy <= x, true);
            System.Console.WriteLine();
            System.Console.WriteLine("xz == x\tresult: {0}\texpected: {1}", xz == x, false);
            System.Console.WriteLine("xz != x\tresult: {0}\texpected: {1}", xz != x, true);
            System.Console.WriteLine("xz > x\tresult: {0}\texpected: {1}", xz > x, false);
            System.Console.WriteLine("xz >= x\tresult: {0}\texpected: {1}", xz >= x, false);
            System.Console.WriteLine("xz < x\tresult: {0}\texpected: {1}", xz < x, true);
            System.Console.WriteLine("xz <= x\tresult: {0}\texpected: {1}", xz <= x, true);
            System.Console.WriteLine();
            System.Console.WriteLine("xy == 65\tresult: {0}\texpected: {1}", xy == 65, true);
            System.Console.WriteLine("xy != 65\tresult: {0}\texpected: {1}", xy != 65, false);
            System.Console.WriteLine("xy > 65\tresult: {0}\texpected: {1}", xy > 65, false);
            System.Console.WriteLine("xy >= 65\tresult: {0}\texpected: {1}", xy >= 65, true);
            System.Console.WriteLine("xy < 65\tresult: {0}\texpected: {1}", xy < 65, false);
            System.Console.WriteLine("xy <= 65\tresult: {0}\texpected: {1}", xy <= 65, true);
            System.Console.WriteLine();
            System.Console.WriteLine("xy == null\tresult: {0}\texpected: {1}", xy == null, false);
            System.Console.WriteLine("xy != null\tresult: {0}\texpected: {1}", xy != null, true);
            System.Console.WriteLine("xy > null\tresult: {0}\texpected: {1}", xy > null, true);
            System.Console.WriteLine("xy >= null\tresult: {0}\texpected: {1}", xy >= null, true);
            System.Console.WriteLine("xy < null\tresult: {0}\texpected: {1}", xy < null, false);
            System.Console.WriteLine("xy <= null\tresult: {0}\texpected: {1}", xy <= null, false);
            System.Console.WriteLine();
            System.Console.WriteLine("null == xy\tresult: {0}\texpected: {1}", null == xy, false);
            System.Console.WriteLine("null != xy\tresult: {0}\texpected: {1}", null != xy, true);
            System.Console.WriteLine("null > xy\tresult: {0}\texpected: {1}", null > xy, false);
            System.Console.WriteLine("null >= xy\tresult: {0}\texpected: {1}", null >= xy, false);
            System.Console.WriteLine("null < xy\tresult: {0}\texpected: {1}", null < xy, true);
            System.Console.WriteLine("null <= xy\tresult: {0}\texpected: {1}", null <= xy, true);
            System.Console.WriteLine();
            System.Console.WriteLine("65 == xy\tresult: {0}\texpected: {1}", 65 == xy, true);
            System.Console.WriteLine("65 != xy\tresult: {0}\texpected: {1}", 65 != xy, false);
            System.Console.WriteLine("65 > xy\tresult: {0}\texpected: {1}", 65 > xy, false);
            System.Console.WriteLine("65 >= xy\tresult: {0}\texpected: {1}", 65 >= xy, true);
            System.Console.WriteLine("65 < xy\tresult: {0}\texpected: {1}", 65 < xy, false);
            System.Console.WriteLine("65 <= xy\tresult: {0}\texpected: {1}", 65 <= xy, true);
            System.Console.WriteLine();
            System.Console.WriteLine("64 == xy\tresult: {0}\texpected: {1}", 64 == xy, false);
            System.Console.WriteLine("64 != xy\tresult: {0}\texpected: {1}", 64 != xy, true);
            System.Console.WriteLine("64 > xy\tresult: {0}\texpected: {1}", 64 > xy, false);
            System.Console.WriteLine("64 >= xy\tresult: {0}\texpected: {1}", 64 >= xy, false);
            System.Console.WriteLine("64 < xy\tresult: {0}\texpected: {1}", 64 < xy, true);
            System.Console.WriteLine("64 <= xy\tresult: {0}\texpected: {1}", 64 <= xy, true);
            System.Console.WriteLine();
            System.Console.WriteLine("y == xy\tresult: {0}\texpected: {1}", y == xy, true);
            System.Console.WriteLine("y != xy\tresult: {0}\texpected: {1}", y != xy, false);
            System.Console.WriteLine("y > xy\tresult: {0}\texpected: {1}", y > xy, false);
            System.Console.WriteLine("y >= xy\tresult: {0}\texpected: {1}", y >= xy, true);
            System.Console.WriteLine("y < xy\tresult: {0}\texpected: {1}", y < xy, false);
            System.Console.WriteLine("y <= xy\tresult: {0}\texpected: {1}", y <= xy, true);
            System.Console.WriteLine();
            System.Console.WriteLine("z == xy\tresult: {0}\texpected: {1}", z == xy, false);
            System.Console.WriteLine("z != xy\tresult: {0}\texpected: {1}", z != xy, true);
            System.Console.WriteLine("z > xy\tresult: {0}\texpected: {1}", z > xy, true);
            System.Console.WriteLine("z >= xy\tresult: {0}\texpected: {1}", z >= xy, true);
            System.Console.WriteLine("z < xy\tresult: {0}\texpected: {1}", z < xy, false);
            System.Console.WriteLine("z <= xy\tresult: {0}\texpected: {1}", z <= xy, false);
            System.Console.WriteLine();
            System.Console.WriteLine("xx == xy\tresult: {0}\texpected: {1}", xx == xy, false);
            System.Console.WriteLine("xx != xy\tresult: {0}\texpected: {1}", xx != xy, true);
            System.Console.WriteLine("xx > xy\tresult: {0}\texpected: {1}", xx > xy, false);
            System.Console.WriteLine("xx >= xy\tresult: {0}\texpected: {1}", xx >= xy, false);
            System.Console.WriteLine("xx < xy\tresult: {0}\texpected: {1}", xx < xy, true);
            System.Console.WriteLine("xx <= xy\tresult: {0}\texpected: {1}", xx <= xy, true);
            System.Console.WriteLine();
        }
Ejemplo n.º 3
0
 public void ReadFrom(DataReader reader)
 {
     fServiceURL       = reader.ReadString("ServiceURL", 500);
     fLoopIntervalSecs = reader.ReadInt("LoopIntervalSecs");
 }