Exemple #1
0
        /// <summary>
        ///   Initializes <c>ListPrinter</c> object using settings from
        ///   <c>ExportConfiguration</c>.
        /// </summary>
        public ListPrinter(IWin32Window owner)
        {
            m_owner         = owner;
            m_printDocument = new PrintDocument();
            PrintOptions po = ConfigurationPersister.Instance.Configuration.ExportConfiguration.PrintOptions;

            m_printFont   = po.ItemFont;
            m_headingFont = po.HeadingFont;
            m_headerFont  = po.HeaderFont;
            m_drawIcons   = po.PrintProjectIcons;
        }
 public ExportConfiguration()
 {
     m_assemblyVersionTypes       = AssemblyVersionTypeSelection.DefaultSelection;
     m_indentSubItems             = true;
     m_indentSubItemsBy           = 1;
     m_excludeNonversionableItems = false;
     m_printOptions     = new PrintOptions();
     m_exportFileFormat = ExportFileFormat.PlainText;
     m_csvSeparator     = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator;
     Debug.Assert(m_assemblyVersionTypes != null && m_assemblyVersionTypes.Length == 3);
     Debug.Assert(m_printOptions != null);
 }