Example #1
0
        protected override bool ShowBuiltInConfirmSendForm(ReportConfirmationModel model)
        {
            ConfirmReportSendForm form = new ConfirmReportSendForm(model);

            Form activeForm = null;

            try {
                activeForm = Form.ActiveForm;
                if (activeForm != null)
                {
                    IntPtr handle = activeForm.Handle;
                    handle = IntPtr.Zero;
                }
            }
            catch {
                activeForm = null;
            }

            if (activeForm != null)
            {
                form.ShowDialog(activeForm);
            }
            else
            {
                form.ShowDialog();
            }
            return(true);
        }
Example #2
0
        protected override bool ShowBuiltInConfirmSendForm(ReportConfirmationModel model)
        {
            ConfirmReportSendForm form = new ConfirmReportSendForm(model);
            Window activeWindow        = GetActiveWindow();

            if (activeWindow != null)
            {
                form.Owner = activeWindow;
            }
            form.ShowDialog();
            return(true);
        }