private string[] GetLabelForContext(ComparisonRecordInfo record, EComparisonContext context)
        {
            switch (context)
            {
            case EComparisonContext.CPU:
                return(GetLabelLines(record.FileRecordInfo.ProcessorName));

            case EComparisonContext.GPU:
                return(GetLabelLines(record.FileRecordInfo.GraphicCardName));

            case EComparisonContext.SystemRam:
                return(GetLabelLines(record.FileRecordInfo.SystemRamInfo));

            case EComparisonContext.DateTime:
                return(GetLabelLines($"{record.FileRecordInfo.CreationDate} { record.FileRecordInfo.CreationTime}"));

            case EComparisonContext.Custom:
                return(GetLabelLines(record.FileRecordInfo.Comment));

            default:
                return(Array.Empty <string>());
            }
        }
Exemple #2
0
 private void OnCpuContext()
 {
     _comparisonContext = EComparisonContext.CPU;
     SetLabelCpuContext();
     ComparisonModel.InvalidatePlot(true);
 }
Exemple #3
0
 private void OnDateTimeContext()
 {
     _comparisonContext = EComparisonContext.DateTime;
     SetLabelDateTimeContext();
     ComparisonModel.InvalidatePlot(true);
 }
Exemple #4
0
 private void OnCustomContex()
 {
     _comparisonContext = EComparisonContext.Custom;
     SetLabelCustomContext();
     ComparisonModel.InvalidatePlot(true);
 }