Exemple #1
0
        private void OnPhaseChanged(IntPtr converter)
        {
            var currentPhase = _wkHtmlToPdf.GetCurrentPhase(converter);
            var eventArgs    = new PhaseChangedArgs
            {
                Document     = _processingDocument,
                PhaseCount   = _wkHtmlToPdf.GetPhaseCount(converter),
                CurrentPhase = currentPhase,
                Description  = _wkHtmlToPdf.GetPhaseDescription(converter, currentPhase)
            };

            PhaseChanged?.Invoke(this, eventArgs);
        }
        private void OnPhaseChanged(IntPtr converter)
        {
            int currentPhase = Tools.GetCurrentPhase(converter);
            var eventArgs    = new PhaseChangedArgs()
            {
                Document     = ProcessingDocument,
                PhaseCount   = Tools.GetPhaseCount(converter),
                CurrentPhase = currentPhase,
                Description  = Tools.GetPhaseDescription(converter, currentPhase)
            };

            PhaseChanged?.Invoke(this, eventArgs);
        }
Exemple #3
0
 private static void Converter_PhaseChanged(object sender, PhaseChangedArgs e)
 {
     Console.WriteLine("Phase changed {0} - {1}", e.CurrentPhase, e.Description);
 }