Пример #1
0
        public GenerationDialog(ChmProject project, bool exitAfterEnd, bool askConfirmations, ChmLogLevel logLevel)
        {
            InitializeComponent();

            this.ExitAfterEnd     = exitAfterEnd;
            this.AskConfirmations = askConfirmations;

            this.UI          = new GenerationDialogUserInterface(this);
            this.UI.LogLevel = logLevel;

            this.Processor = new DocumentProcessor(project, UI);

            BgWorker.RunWorkerAsync();
        }
Пример #2
0
        public GenerationDialog(ChmProject project, bool exitAfterEnd, bool askConfirmations, int LogLevel)
        {
            InitializeComponent();

            this.project = project;
            this.exitAfterEnd = exitAfterEnd;
            this.askConfirmations = askConfirmations;

            this.UI = new GenerationDialogUserInterface(this);
            this.UI.LogLevel = LogLevel;

            this.processor = new DocumentProcessor(project);
            this.processor.UI = UI;

            bgWorker.RunWorkerAsync();
        }