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>()); } }
private void OnCpuContext() { _comparisonContext = EComparisonContext.CPU; SetLabelCpuContext(); ComparisonModel.InvalidatePlot(true); }
private void OnDateTimeContext() { _comparisonContext = EComparisonContext.DateTime; SetLabelDateTimeContext(); ComparisonModel.InvalidatePlot(true); }
private void OnCustomContex() { _comparisonContext = EComparisonContext.Custom; SetLabelCustomContext(); ComparisonModel.InvalidatePlot(true); }