to see the activity picture, at first launch
This commit is contained in:
@ -541,11 +541,11 @@ namespace ZicMoove.Droid
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var acode = photo[1];
|
||||
var act = DataManager.Instance.Activities.LocalGet(acode);
|
||||
act.LocalPhoto = Path.Combine(images, $"{acode}.svg");
|
||||
}
|
||||
}
|
||||
foreach (var act in DataManager.Instance.Activities)
|
||||
{ act.LocalPhoto = Path.Combine(images, $"{act.Code}.svg"); }
|
||||
DataManager.Instance.Activities.SaveEntity();
|
||||
}
|
||||
}
|
||||
|
@ -1,10 +1,11 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using YavscLib;
|
||||
using XLabs.Forms.Mvvm;
|
||||
|
||||
namespace ZicMoove.Model.Workflow
|
||||
{
|
||||
public class Activity : IActivity
|
||||
using YavscLib;
|
||||
public class Activity : ViewModel, IActivity
|
||||
{
|
||||
public string Code
|
||||
{
|
||||
@ -74,6 +75,11 @@ namespace ZicMoove.Model.Workflow
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public string LocalPhoto { get; set; }
|
||||
private string photo;
|
||||
|
||||
public string LocalPhoto {
|
||||
get { return photo; }
|
||||
set { SetProperty<string>(ref photo, value);
|
||||
} }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user