示例#1
0
        public async override void OnNavigatingTo(NavigationParameters parameters)
        {
            base.OnNavigatingTo(parameters);
            var res = await _appSettingsManager.GetDevicesAsync();

            Devices = new ObservableCollection <DeviceModel>(res.OrderBy((arg) => arg.Mac));
        }
示例#2
0
 private void LoadSites()
 {
     Task.Run(async() =>
     {
         deviceModels = await _appSettingsManager.GetDevicesAsync();
         if (deviceModels == null)
         {
             deviceModels = new HashSet <DeviceModel>();
         }
     });
 }