Exemplo n.º 1
0
        private async Task FetchBuldingDetail(string buildingId, bool forceCloud = false)
        {
            //Buildings.Clear();

            try
            {
                using (var dlg = this.Dialogs.Loading("Progress (No Cancel)"))
                {
                    var stat = await _buildingService.FetchBuldingDetail(buildingId, forceCloud);

                    if (stat != null && stat.Equals("SUCCESS"))
                    {
                        //Dialogs.Alert("Building Users data has been updated");
                    }
                    else
                    {
                        Dialogs.ShowError("Sorry, could not receive building data!");
                    }
                }
            }
            catch (Exception e)
            {
                Dialogs.ShowError(e.Message);
            }
        }