Exemple #1
0
        private int GetMaxDateTimeAlignment()
        {
            bool hasUniqueGameNames = GetHasUniqueGameNames();

            if (hasUniqueGameNames)
            {
                return(ComparisonRecords.Max(record => record.WrappedRecordInfo.DateTime.Length));
            }
            else
            {
                var maxGameNameLength = ComparisonRecords.Max(record => record.WrappedRecordInfo.Game.Length);
                var maxDateTimeLength = ComparisonRecords.Max(record => record.WrappedRecordInfo.DateTime.Length);

                return(Math.Max(maxGameNameLength, maxDateTimeLength));
            }
        }
Exemple #2
0
        private int GetMaxGpuAlignment()
        {
            bool hasUniqueGameNames = GetHasUniqueGameNames();

            if (hasUniqueGameNames)
            {
                return(ComparisonRecords.Max(record
                                             => record.WrappedRecordInfo.FileRecordInfo.GraphicCardName.SplitWordWise(PART_LENGTH).Max(part => part.Length)));
            }
            else
            {
                var maxGameNameLength = ComparisonRecords.Max(record => record.WrappedRecordInfo.Game.Length);
                var maxGpuLength      = ComparisonRecords.Max(record
                                                              => record.WrappedRecordInfo.FileRecordInfo.GraphicCardName.SplitWordWise(PART_LENGTH).Max(part => part.Length));

                return(Math.Max(maxGameNameLength, maxGpuLength));
            }
        }