|
@@ -49,6 +49,11 @@ namespace PRS.Mobile
|
|
|
|
|
|
public void Serialize(DFSaveStorageEntry entry)
|
|
public void Serialize(DFSaveStorageEntry entry)
|
|
{
|
|
{
|
|
|
|
+ if (_value?.Any() != true)
|
|
|
|
+ {
|
|
|
|
+ _pad.Save();
|
|
|
|
+ _value = GetSignature(_pad.ImageSource);
|
|
|
|
+ }
|
|
Definition?.Properties.SerializeValue(entry,_value);
|
|
Definition?.Properties.SerializeValue(entry,_value);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -75,7 +80,7 @@ namespace PRS.Mobile
|
|
|
|
|
|
public string Serialize()
|
|
public string Serialize()
|
|
{
|
|
{
|
|
- if (_value == null)
|
|
|
|
|
|
+ if (_value?.Any() != true)
|
|
{
|
|
{
|
|
_pad.Save();
|
|
_pad.Save();
|
|
_value = GetSignature(_pad.ImageSource);
|
|
_value = GetSignature(_pad.ImageSource);
|
|
@@ -209,7 +214,7 @@ namespace PRS.Mobile
|
|
|
|
|
|
private void UpdateValue()
|
|
private void UpdateValue()
|
|
{
|
|
{
|
|
- if (_value == null)
|
|
|
|
|
|
+ if (_value?.Any() != true)
|
|
{
|
|
{
|
|
_pad.Clear();
|
|
_pad.Clear();
|
|
_pad.IsVisible = true;
|
|
_pad.IsVisible = true;
|