public async override void OnNavigatingTo(NavigationParameters parameters) { base.OnNavigatingTo(parameters); var res = await _appSettingsManager.GetDevicesAsync(); Devices = new ObservableCollection <DeviceModel>(res.OrderBy((arg) => arg.Mac)); }
private void LoadSites() { Task.Run(async() => { deviceModels = await _appSettingsManager.GetDevicesAsync(); if (deviceModels == null) { deviceModels = new HashSet <DeviceModel>(); } }); }