Пример #1
0
 private void MuPDFProgressChanged(object sender, ProgressChangedEventArgs e)
 {
     /* Callback with progress */
     ConvertParams_t Value = new ConvertParams_t();
     muPDFEventArgs info = new muPDFEventArgs(false, e.ProgressPercentage, Value);
     mupdfUpdateMain(this, info);
 }
Пример #2
0
		private void mupdfUpdate(object muObject, muPDFEventArgs asyncInformation)
		{
			if (asyncInformation.Completed)
			{
				xaml_MuPDFProgress.Value = 100;
				xaml_MuPDFGrid.Visibility = System.Windows.Visibility.Collapsed;
				if (asyncInformation.Params.result == GS_Result_t.gsFAILED)
				{
					ShowMessage(NotifyType_t.MESS_STATUS, "MuPDF failed to convert document");
				}
				MuPDFResult(asyncInformation.Params);
			}
			else
			{
				this.xaml_MuPDFProgress.Value = asyncInformation.Progress;
			}
		}
Пример #3
0
        private void MuPDFCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            ConvertParams_t Value;
            muPDFEventArgs info;

            if (e.Cancelled)
            {
                Value = new ConvertParams_t();
                Value.result = GS_Result_t.gsCANCELLED;
                info = new muPDFEventArgs(true, 100, Value);
            }
            else
            {
                Value = (ConvertParams_t)e.Result;
                info = new muPDFEventArgs(true, 100, Value);
            }
            mupdfUpdateMain(this, info);
        }