Example #1
0
        protected bool InitConsts(TaskList tasks, string destFilePath, bool silent, Preferences prefs, string sKey)
        {
            // Display a dialog to get the report parameters
            // or to return the last saved template
            using (var dialog = new HtmlReportTemplateForm(m_TypeId, m_Trans, tasks, prefs, sKey))
            {
                if (!silent && (dialog.ShowDialog() != DialogResult.OK))
                {
                    return(false);
                }

                m_Template = dialog.ReportTemplate;
            }

            return(m_Template.HasContents());
        }
        protected bool InitConsts(TaskList tasks, string destFilePath, bool silent, Preferences prefs, string sKey)
        {
            if (!silent)
            {
                // Display a dialog to get the report parameters
                using (var dialog = new HtmlReportTemplateForm(m_TypeId, m_Trans, tasks, prefs))
                {
                    if (dialog.ShowDialog() != DialogResult.OK)
                    {
                        return(false);
                    }

                    m_Template = dialog.ReportTemplate;
#if DEBUG
                    return(false);
#endif
                }
            }
            return(true);
        }