Skip to content

Commit

Permalink
fixed observation of type long
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarresi committed Nov 14, 2019
1 parent d613c46 commit 304e54a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions TwinCatAdsTool.Gui/Views/SymbolObservationTemplateSelector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ public override DataTemplate SelectTemplate(object item, DependencyObject contai
return BoolTemplate;
}

if (item is SymbolObservationViewModel<UInt16>)
if (item is SymbolObservationViewModel<ushort>)
{
return IntTemplate;
}

if (item is SymbolObservationViewModel<UInt32>)
if (item is SymbolObservationViewModel<uint>)
{
return IntTemplate;
}
Expand All @@ -87,6 +87,15 @@ public override DataTemplate SelectTemplate(object item, DependencyObject contai
return IntTemplate;
}

if (item is SymbolObservationViewModel<long>)
{
return IntTemplate;
}

if (item is SymbolObservationViewModel<ulong>)
{
return IntTemplate;
}

return DefaultTemplate;
}
Expand Down

0 comments on commit 304e54a

Please sign in to comment.