Skip to content

Commit

Permalink
update get mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
LiorBanai committed Oct 23, 2023
1 parent 8177674 commit dc5e6ca
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions Analogy.LogViewer.NLogProvider/ColumnsMatcherUC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,18 @@ private Dictionary<int, AnalogyLogMessagePropertyName> GetMapping()
{
Dictionary<int, AnalogyLogMessagePropertyName> maps = new(11)
{
{ decimal.ToInt32(nudDate.Value), AnalogyLogMessagePropertyName.Date },
{ decimal.ToInt32(nudLevel.Value), AnalogyLogMessagePropertyName.Level },
{ decimal.ToInt32(nudText.Value), AnalogyLogMessagePropertyName.Text },
{ decimal.ToInt32(nudSource.Value), AnalogyLogMessagePropertyName.Source },
{ decimal.ToInt32(nudProcessName.Value), AnalogyLogMessagePropertyName.Module },
{ decimal.ToInt32(nudProcessId.Value), AnalogyLogMessagePropertyName.ProcessId },
{ decimal.ToInt32(nudMachineName.Value), AnalogyLogMessagePropertyName.MachineName },
{ decimal.ToInt32(nudUserName.Value), AnalogyLogMessagePropertyName.User },
{ decimal.ToInt32(nudFileName.Value), AnalogyLogMessagePropertyName.FileName },
{ decimal.ToInt32(nudMethodName.Value), AnalogyLogMessagePropertyName.MethodName },
{ decimal.ToInt32(nudLineNumber.Value), AnalogyLogMessagePropertyName.LineNumber },
[decimal.ToInt32(nudDate.Value)] = AnalogyLogMessagePropertyName.Date,
[decimal.ToInt32(nudLevel.Value)] = AnalogyLogMessagePropertyName.Level,
[decimal.ToInt32(nudText.Value)] = AnalogyLogMessagePropertyName.Text,
[decimal.ToInt32(nudSource.Value)] = AnalogyLogMessagePropertyName.Source,
[decimal.ToInt32(nudProcessName.Value)] = AnalogyLogMessagePropertyName.Module,
[decimal.ToInt32(nudProcessId.Value)] = AnalogyLogMessagePropertyName.ProcessId,
[decimal.ToInt32(nudMachineName.Value)] = AnalogyLogMessagePropertyName.MachineName,
[decimal.ToInt32(nudUserName.Value)] = AnalogyLogMessagePropertyName.User,
[decimal.ToInt32(nudFileName.Value)] = AnalogyLogMessagePropertyName.FileName,
[decimal.ToInt32(nudMethodName.Value)] = AnalogyLogMessagePropertyName.MethodName,
[decimal.ToInt32(nudLineNumber.Value)] = AnalogyLogMessagePropertyName.LineNumber
};

return maps;
}
}
Expand Down

0 comments on commit dc5e6ca

Please sign in to comment.