Added ping handler. IO-406

This commit is contained in:
Patrick Fic
2021-02-22 17:04:13 -08:00
parent 50279d34ac
commit 1a364c91ef
4 changed files with 40 additions and 6 deletions

View File

@@ -222,11 +222,13 @@ namespace BodyshopPartner.ViewModels
{
ShopData = Data.bodyshops.ToObject<ObservableCollection<Bodyshop>>();
}
ActiveShop = ShopData.Where(_ => _.AssociationActive == true).FirstOrDefault();
Properties.Settings.Default.LastSelectedShop = ActiveShop.Id ?? null;
Properties.Settings.Default.Save();
ActiveShop = ShopData.Where(_ => _.AssociationActive == true).FirstOrDefault();
Utils.AppMetaData.ActiveShopId = ActiveShop?.Id;
Utils.AppMetaData.ShopRegion = ActiveShop?.RegionConfig;
Properties.Settings.Default.LastSelectedShop = ActiveShop.Id ?? null;
Properties.Settings.Default.Save();
}
public async Task SetActiveBodyshop()