Beispiel #1
0
                public void CountTestCopy()
                {
                    for (int tx = 0; tx < GetCount(); ++tx)
                    {
                        LogTrack track = GetItem(tx);
                        track.IsTrackOk = false;
                        if (track.CopyCRC != null)
                        {
                            ++Data.CopyCount;
                        }
                        if (track.TestCRC == null)
                        {
                            track.IsTrackOk = track.CopyCRC != null;
                        }
                        else
                        {
                            ++Data.TestCount;
                            track.IsTrackOk = track.CopyCRC == track.TestCRC;
                            if (!track.IsTrackOk)
                            {
                                ++Data.TestMismatchCount;
                            }
                        }
                    }

                    if (Data.TestCount > 0 && Data.TestCount < GetCount())
                    {
                        for (int tx = 0; tx < GetCount(); ++tx)
                        {
                            LogTrack track = GetItem(tx);
                            if (track.TestCRC == null)
                            {
                                track.IsTrackOk = false;
                            }
                        }
                    }
                }