|
@@ -681,6 +681,7 @@ namespace PDF_Office.ViewModels.PageEdit
|
|
|
/// </summary>
|
|
|
private async void DeleteCommandEvent()
|
|
|
{
|
|
|
+
|
|
|
IsLoading = Visibility.Visible;
|
|
|
await Task.Delay(3);
|
|
|
DoRemoveSelectedPages();
|
|
@@ -1128,12 +1129,11 @@ namespace PDF_Office.ViewModels.PageEdit
|
|
|
private void copy()
|
|
|
{
|
|
|
//付费锁
|
|
|
- //if (!App.IsActive())
|
|
|
- //{
|
|
|
- // IAPFunctionDialog dialog = new IAPFunctionDialog("PageEdit");
|
|
|
- // dialog.ShowDialog();
|
|
|
- // return;
|
|
|
- //}
|
|
|
+ if (!App.IsLogin)
|
|
|
+ {
|
|
|
+ dialogs.ShowDialog(DialogNames.IAPCompareDialog);
|
|
|
+ return;
|
|
|
+ }
|
|
|
CacheFilePath.Instance.CopyDoc = null;
|
|
|
CacheFilePath.Instance.CopyDoc = CPDFDocument.CreateDocument();
|
|
|
List<int> pages = new List<int>();
|
|
@@ -1169,12 +1169,11 @@ namespace PDF_Office.ViewModels.PageEdit
|
|
|
private async void paste()
|
|
|
{
|
|
|
//付费锁
|
|
|
- //if (!App.IsActive())
|
|
|
- //{
|
|
|
- // IAPFunctionDialog dialog = new IAPFunctionDialog("PageEdit");
|
|
|
- // dialog.ShowDialog();
|
|
|
- // return;
|
|
|
- //}
|
|
|
+ if (!App.IsLogin)
|
|
|
+ {
|
|
|
+ dialogs.ShowDialog(DialogNames.IAPCompareDialog);
|
|
|
+ return;
|
|
|
+ }
|
|
|
IsLoading = Visibility.Visible;
|
|
|
int insertindex = maxSelectedIndex > listSelecedIndex ? maxSelectedIndex : listSelecedIndex;
|
|
|
insertindex++;
|
|
@@ -1426,8 +1425,13 @@ namespace PDF_Office.ViewModels.PageEdit
|
|
|
/// </summary>
|
|
|
private void DoRemoveSelectedPages(List<int> pageList = null, bool isFromUndoRedo = false)
|
|
|
{
|
|
|
-
|
|
|
- List<int> indexList = new List<int>();
|
|
|
+ //付费锁
|
|
|
+ if (!App.IsLogin)
|
|
|
+ {
|
|
|
+ dialogs.ShowDialog(DialogNames.IAPCompareDialog);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ List<int> indexList = new List<int>();
|
|
|
if (pageList == null || pageList.Count < 0)
|
|
|
{
|
|
|
for (int i = 0; i < PageEditItems.Count; i++)
|
|
@@ -1947,6 +1951,13 @@ namespace PDF_Office.ViewModels.PageEdit
|
|
|
/// <param name="rightRotate"></param>
|
|
|
private async void RotateSelectedPages(bool rightRotate = true,List<int> pageitems=null,bool isFromUndoRedo = false)
|
|
|
{
|
|
|
+ //付费锁
|
|
|
+ if (!App.IsLogin)
|
|
|
+ {
|
|
|
+ dialogs.ShowDialog(DialogNames.IAPCompareDialog);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
IsLoading = Visibility.Visible;
|
|
|
await Task.Delay(2);
|
|
|
Dictionary<int, int> items = new Dictionary<int, int>();
|