File tree Expand file tree Collapse file tree 3 files changed +3
-25
lines changed
UnitConverter.Wpf/UnitConverter.Wpf Expand file tree Collapse file tree 3 files changed +3
-25
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
- using System . Collections . Generic ;
3
- using System . Linq ;
4
- using System . Threading . Tasks ;
5
2
using UnitsNet ;
6
3
7
4
namespace ConsoleApp1
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- using System ;
1
+ using System ;
2
2
3
3
namespace UnitsNet . Samples . UnitConverter . Wpf
4
4
{
@@ -14,7 +14,7 @@ public UnitListItem(object val)
14
14
UnitEnumValue = val ;
15
15
UnitEnumValueInt = ( int ) val ;
16
16
UnitEnumType = val . GetType ( ) ;
17
- Abbreviation = UnitSystem . Default . GetDefaultAbbreviation ( UnitEnumType , UnitEnumValueInt ) ;
17
+ Abbreviation = UnitAbbreviationsCache . Default . GetDefaultAbbreviation ( UnitEnumType , UnitEnumValueInt ) ;
18
18
19
19
Text = $ "{ val } [{ Abbreviation } ]";
20
20
}
@@ -25,4 +25,4 @@ public UnitListItem(object val)
25
25
public Type UnitEnumType { get ; }
26
26
public string Abbreviation { get ; }
27
27
}
28
- }
28
+ }
You can’t perform that action at this time.
0 commit comments