Ejemplo n.º 1
0
        private void triggerSavedImage(CloseEvent closeEvent, Uri file)
        {
            closeHandler handler = onSavedImage;

            if (handler != null)
            {
                handler(closeEvent, file);
            }
        }
Ejemplo n.º 2
0
        public static void Show(Panel parent, ImageSource picture, closeHandler handler)
        {
            CropDialog cropDialog = new CropDialog();

            cropDialog.frameImage.Source = picture;
            cropDialog.onSavedImage     += handler;

            new Dialog(parent, cropDialog, false, true, false, null,
                       new DialogButton("Forget", DialogButton.Alignment.Right, DialogButton.Style.Flat, delegate() {
                cropDialog.forget();

                return(DialogButton.ReturnEvent.Close);
            }), new DialogButton("Save", DialogButton.Alignment.Right, DialogButton.Style.Normal, delegate() {
                cropDialog.cropAndSaveImage();

                return(DialogButton.ReturnEvent.Close);
            }));
        }
Ejemplo n.º 3
0
        public static void Show(Panel parent, ImageSource picture, closeHandler handler)
        {
            CropDialog cropDialog = new CropDialog();
            cropDialog.frameImage.Source = picture;
            cropDialog.onSavedImage += handler;

            new Dialog(parent, cropDialog, false, true, false, null,
                new DialogButton("Forget", DialogButton.Alignment.Right, DialogButton.Style.Flat, delegate () {

                    cropDialog.forget();

                    return DialogButton.ReturnEvent.Close;
                }), new DialogButton("Save", DialogButton.Alignment.Right, DialogButton.Style.Normal, delegate () {

                    cropDialog.cropAndSaveImage();

                    return DialogButton.ReturnEvent.Close;
                }));
        }