Exemple #1
0
        void CreateStamp()
        {
            Stamp = new Stamp();
            int sum = (mCountA + mCountD);

            string[] row   = mConfig[sum + 4];
            double   rate  = double.Parse(row[0]);
            int      total = int.Parse(row[1]);
            DateTime stamp = ReadStamp(5);

            if (stamp.Second == 59)
            {
                stamp = stamp.AddSeconds(1);
                Fault = Fault.AddSeconds(1);
            }
            int tick = (int)(10000000 / rate);

            for (int i = 0; i < total; i++)
            {
                Stamp.Add(stamp);
                stamp = stamp.AddTicks(tick);
            }
        }