コード例 #1
0
        public FormCreateDocs(ref FileParser parser, ref DocumentCreator docCreator, ref LogMessageDelegate logger)
        {
            m_parser     = parser;
            m_logger     = logger;
            m_docCreator = docCreator;

            InitializeComponent();

            backgroundWorker1.WorkerSupportsCancellation = true;
            backgroundWorker1.WorkerReportsProgress      = true;
        }
コード例 #2
0
        public FormMain()
        {
            m_loggerDelegate = LogMessage;
            ConfigurationDYES cfg = new ConfigurationDYES();

            ConfigurationDYES.DeSerialize(cfg.ConfigFileName, ref cfg);
            Config       = cfg;
            m_docCreator = new DocumentCreator(m_loggerDelegate);
            m_parser     = new FileParser(m_loggerDelegate);

            InitializeComponent();
            InitializeControls();
        }