Selaa lähdekoodia

compdfkit(win) -合并1.13

zhuyi 9 kuukautta sitten
vanhempi
commit
9cfec61be0

+ 1 - 8
Demo/Examples/Compdfkit_Tools/Edit/PDFContentEditControl.xaml.cs

@@ -23,20 +23,13 @@ namespace Compdfkit_Tools.Edit
             PDFImageEditControl.InitWithPDFViewer(newPDFView.PDFViewTool);
             PDFTextEditControl.InitWithPDFViewer(newPDFView.PDFViewTool);
         }
-
-        public void SetRotationText(float rotation)
-        {
-            PDFImageEditControl.SetRotationText(rotation);
-        }
          
-        public void SetPDFTextEditData(TextEditParam editEvent, bool isTemp = false)
-
         public void SetRotationText(float rotation)
         {
             PDFImageEditControl.SetRotationText(rotation);
         }
 
-        public void SetPDFTextEditData(PDFEditEvent editEvent, bool isTemp = false)
+        public void SetPDFTextEditData(TextEditParam editEvent, bool isTemp = false)
         {
             if (!isTemp)
             {

+ 2 - 7
Demo/Examples/Compdfkit_Tools/Edit/PDFImageEdit/PDFImageEditControl/PDFImageEditControl.xaml.cs

@@ -59,11 +59,6 @@ namespace Compdfkit_Tools.Edit
         {
             ToolView = newPDFView;
         }
-        
-        public void SetRotationText(float rotation)
-        {
-            RotationTxb.Text = rotation.ToString(CultureInfo.CurrentCulture);
-        }
 
         public void SetPDFImageEditData(ImageEditParam newEvent)
         {
@@ -191,8 +186,8 @@ namespace Compdfkit_Tools.Edit
                         editHistory.PageIndex = pdfPage.PageIndex;
                     }
 
-                    ToolView.GetCPDFViewer()?.UndoManager.AddHistory(editHistory)
-                    SetRotationText(EditEvent.CurrentRotated);
+                    ToolView.GetCPDFViewer()?.UndoManager.AddHistory(editHistory);
+                    //SetRotationText(EditEvent.CurrentRotated);
                     SetImageThumb();
                     ToolView.UpdateRender(oldRect, imageArea);
                     editPage.EndEdit();

+ 0 - 15
Demo/Examples/Compdfkit_Tools/PDFView/PDFSearch/PDFSearchUI/CPDFSearchInputUI.xaml.cs

@@ -111,21 +111,6 @@ namespace Compdfkit_Tools.PDFControlUI
             MoveResultEvent?.Invoke(this,MoveDirection.Next);
         }
 
-        private void ReplaceTextClear_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
-        {
-            ReplaceTextBox.Text = string.Empty;
-        }
-
-        private void Previous_Click(object sender, RoutedEventArgs e)
-        {
-            MoveResultEvent?.Invoke(this,MoveDirection.Previous);
-        }
-
-        private void Next_Click(object sender, RoutedEventArgs e)
-        {
-            MoveResultEvent?.Invoke(this,MoveDirection.Next);
-        }
-
         private void SearchTextBox_TextChanged(object sender, TextChangedEventArgs e)
         {
             if (string.IsNullOrEmpty(SearchKeyWord))

+ 14 - 14
Demo/Examples/PDFViewer/App.xaml.cs

@@ -62,24 +62,24 @@ namespace PDFViewer
              
             LicenseVerify();
             CPDFSDKVerifier.PrintPermissions();
-            CPDFSDKVerifier.LicenseRefreshed -= CPDFSDKVerifier_LicenseRefreshed;
-            CPDFSDKVerifier.LicenseRefreshed += CPDFSDKVerifier_LicenseRefreshed;
+            //CPDFSDKVerifier.LicenseRefreshed -= CPDFSDKVerifier_LicenseRefreshed;
+            //CPDFSDKVerifier.LicenseRefreshed += CPDFSDKVerifier_LicenseRefreshed;
             HistoryFile(@"TestFile\ComPDFKit_Sample_File_Windows.pdf");
             FileHistoryHelper<PDFFileInfo>.Instance.LoadHistory();
         }
 
-        private void CPDFSDKVerifier_LicenseRefreshed(object sender, ResponseModel e)
-        {
-            if(e != null)
-            {
-                string message = string.Format("{0} {1}", e.Code, e.Message);
-                Trace.WriteLine(message);
-            }
-            else
-            {
-                Trace.WriteLine("Network not connected."); 
-            } 
-        }
+        //private void CPDFSDKVerifier_LicenseRefreshed(object sender, ResponseModel e)
+        //{
+        //    if(e != null)
+        //    {
+        //        string message = string.Format("{0} {1}", e.Code, e.Message);
+        //        Trace.WriteLine(message);
+        //    }
+        //    else
+        //    {
+        //        Trace.WriteLine("Network not connected."); 
+        //    } 
+        //}
 
         private void HistoryFile(string item)
         {