private void OnSave(object sender, EventArgs args)
        {
            if (this.signatureView.IsBlank)
            {
                return;
            }

            var points = this.signatureView
                         .Points
                         .Select(x => new DrawPoint(x.X, x.Y));

            using (var image = this.signatureView.GetImage()) {
                using (var stream = new MemoryStream()) {
                    var format = SignatureService.CurrentConfig.ImageType == ImageFormatType.Png
                        ? Android.Graphics.Bitmap.CompressFormat.Png
                        : Android.Graphics.Bitmap.CompressFormat.Jpeg;
                    image.Compress(format, 100, stream);
                    SignatureService.OnResult(new SignatureResult(false, stream, points));
                    this.Finish();
                }
            }
        }
 private void OnCancel(object sender, EventArgs args)
 {
     SignatureService.OnResult(new SignatureResult(true, null, null));
     this.Finish();
 }