Exemplo n.º 1
0
        protected override bool RaiseConfirmationDialogShowing(ReportConfirmationModel model)
        {
            ConfirmationDialogEventHandler handler = ConfirmationDialogShowing;

            if (handler != null)
            {
                ConfirmationDialogModel actualModel = model as ConfirmationDialogModel;
                if (actualModel == null)
                {
                    return(false);
                }
                ConfirmationDialogEventArgs args = new ConfirmationDialogEventArgs(actualModel);
                handler(this, args);
                return(args.Handled);
            }
            return(false);
        }
Exemplo n.º 2
0
 public ConfirmationDialogEventArgs(ConfirmationDialogModel model)
 {
     this.Model = model;
     Handled    = false;
 }