protected override void OnPostExecute(string result)
            {
                try
                {
                    base.OnPostExecute(result);
                    if (result == "")
                    {
                        //Clear all views if its enabled in save settings
                        if (SaveSettings.IsClearViewsEnabled())
                        {
                            Editor?.ClearAllViews();
                        }

                        OnSaveListener.OnSuccess(ImagePath, SavedResultBitmap);
                    }
                    else
                    {
                        OnSaveListener.OnFailure("Failed to load the bitmap");
                    }

                    Dispose(true);
                }
                catch (Exception e)
                {
                    Methods.DisplayReportResultTrack(e);
                    OnSaveListener.OnFailure(result);
                }
            }
 public void OnFailure(string e)
 {
     try
     {
         OnSaveListener.OnFailure(e);
     }
     catch (Exception ex)
     {
         Methods.DisplayReportResultTrack(ex);
     }
 }
 public void OnFailure(string e)
 {
     try
     {
         OnSaveListener.OnFailure(e);
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex);
     }
 }