Update configuration system to use JSON
This commit is contained in:
19
Eve-O-Preview/Presentation/ViewZoomAnchorConverter.cs
Normal file
19
Eve-O-Preview/Presentation/ViewZoomAnchorConverter.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using EveOPreview.Configuration;
|
||||
|
||||
namespace EveOPreview.UI
|
||||
{
|
||||
static class ViewZoomAnchorConverter
|
||||
{
|
||||
public static ZoomAnchor Convert(ViewZoomAnchor value)
|
||||
{
|
||||
// Cheat based on fact that the order and byte values of both enums are the same
|
||||
return (ZoomAnchor)((int)value);
|
||||
}
|
||||
|
||||
public static ViewZoomAnchor Convert(ZoomAnchor value)
|
||||
{
|
||||
// Cheat based on fact that the order and byte values of both enums are the same
|
||||
return (ViewZoomAnchor)((int)value);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user