/// <summary> /// load the house plan /// </summary> private async Task ExecuteLoadPlansCommand(bool refresh) { if (Plans == null || refresh) { if (IsBusy) { return; } IsBusy = true; } try { var items = await App.ApiService.GetPlans(); if (items.result != null && items.result.Length > 0) { Plans?.ReplaceRange(items.result); } PlansLoadedMethod?.Invoke(); } catch (Exception ex) { App.AddLog(ex.Message); } IsBusy = false; }