Introduce example for a more flexible deserialization
Also make the CoverGenerator themes serializeable Rest is automatic reformatting.
This commit is contained in:
1 parent
467b619f0a
commit
6ebbf7df6f
33 files changed
+428
-397
No files matched your search
+10
-2
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace VocaluxeLib
|
||||
{
|
||||
@@ -8,6 +9,13 @@ namespace VocaluxeLib
|
||||
void FontChanged();
|
||||
}
|
||||
|
||||
public struct SThemeFont
|
||||
{
|
||||
public string Name;
|
||||
public EStyle Style;
|
||||
public float Size;
|
||||
}
|
||||
|
||||
public class CFont
|
||||
{
|
||||
private string _Name;
|
||||
@@ -59,11 +67,11 @@ namespace VocaluxeLib
|
||||
_Height = 25f;
|
||||
}
|
||||
|
||||
public CFont(CFont font)
|
||||
public CFont(SThemeFont font)
|
||||
{
|
||||
_Name = font.Name;
|
||||
_Style = font.Style;
|
||||
_Height = font.Height;
|
||||
_Height = font.Size;
|
||||
}
|
||||
|
||||
public CFont(string fontFamily, EStyle style, float h)
|
||||
|
||||
Reference in new issue
Block a user