Exemple #1
0
        private async Task ExecutePoofCommand()
        {
            try
            {
                if (!await LoginAsync())
                {
                    return;
                }

                LoadingMessage = "Adding Poof...";
                IsBusy         = true;

                //esiste overload per proprietà e metriche
                HockeyApp.MetricsManager.TrackEvent("Add Poof");

                //await Task.Delay(4000);
                await azureService.AddPoof(Justified, Comment, Settings.UserId);

                Comment   = null;
                Justified = false;
            }
            catch (Exception ex)
            {
                Insights.Report(ex, Insights.Severity.Error);
                await CoreMethods.DisplayAlert("Service Error", ex.Message, "OK");
            }
            finally
            {
                LoadingMessage = string.Empty;
                IsBusy         = false;
            }
        }