diff --git a/UnicodeCharacterInspector/CharacterInfoViewModel.cs b/UnicodeCharacterInspector/CharacterInfoViewModel.cs index cbb3bb8..1396c35 100644 --- a/UnicodeCharacterInspector/CharacterInfoViewModel.cs +++ b/UnicodeCharacterInspector/CharacterInfoViewModel.cs @@ -52,6 +52,8 @@ namespace UnicodeCharacterInspector NotifyPropertyChanged("CodePoint"); NotifyPropertyChanged("Name"); NotifyPropertyChanged("OldName"); + NotifyPropertyChanged("NumericType"); + NotifyPropertyChanged("NumericValue"); NotifyPropertyChanged("Category"); NotifyPropertyChanged("ContributoryProperties"); } @@ -78,6 +80,16 @@ namespace UnicodeCharacterInspector get { return character != null ? characterData != null ? characterData.Category : UnicodeCategory.OtherNotAssigned : null as UnicodeCategory?; } } + public UnicodeNumericType? NumericType + { + get { return character != null ? characterData != null ? characterData.NumericType : UnicodeNumericType.None : null as UnicodeNumericType?; } + } + + public UnicodeRationalNumber? NumericValue + { + get { return character != null && characterData != null && characterData.NumericType != UnicodeNumericType.None ? characterData.NumericValue : null as UnicodeRationalNumber?; } + } + public ContributoryProperties? ContributoryProperties { get { return character != null ? characterData != null ? characterData.ContributoryProperties : 0 : null as ContributoryProperties?; } diff --git a/UnicodeCharacterInspector/MainWindow.xaml b/UnicodeCharacterInspector/MainWindow.xaml index 5ad2a31..501a7ee 100644 --- a/UnicodeCharacterInspector/MainWindow.xaml +++ b/UnicodeCharacterInspector/MainWindow.xaml @@ -55,18 +55,24 @@ + + -