|
@@ -13,6 +13,7 @@ using System.Net.Mime;
|
|
|
using System.Threading;
|
|
|
using System.Windows.Threading;
|
|
|
using ImTools;
|
|
|
+using PDF_Master.Properties;
|
|
|
|
|
|
namespace PDF_Master.Model.Dialog.ConverterDialogs
|
|
|
{
|
|
@@ -124,18 +125,34 @@ namespace PDF_Master.Model.Dialog.ConverterDialogs
|
|
|
/// <param name="converterDialogsModel"></param>
|
|
|
private void limitationConvert(ConverterDialogsModel converterDialogsModel)
|
|
|
{
|
|
|
- if (!ServiceHelper.IAPBeforeFunction())
|
|
|
+ if (App.IsLogin!=true&&Settings.Default.UserDate.subscribestatus!=1)
|
|
|
{
|
|
|
- if (converterDialogsModel.PageIndexLists.Contains(10))
|
|
|
- {
|
|
|
- converterDialogsModel.PageIndexLists.RemoveRange(converterDialogsModel.PageIndexLists.IndexOf(10), converterDialogsModel.PageIndexLists.Count - converterDialogsModel.PageIndexLists.IndexOf(10));
|
|
|
+ //当前文档前10页
|
|
|
+ //int limitationindex = 0;
|
|
|
+ ////此链表从0开始,查询大于或等于10的索引值
|
|
|
+ //for (int i = 0; converterDialogsModel.PageIndexLists.Count > i; i++)
|
|
|
+ //{
|
|
|
|
|
|
- }
|
|
|
- else if (converterDialogsModel.PageIndexLists.Contains(11))
|
|
|
+ // if (converterDialogsModel.PageIndexLists[i] >= 10)
|
|
|
+ // {
|
|
|
+ // limitationindex = i;
|
|
|
+ // break;
|
|
|
+ // }
|
|
|
+ //}
|
|
|
+ ////安全检查判断返回的大于或等于10的索引值是否正常
|
|
|
+ //if (converterDialogsModel.PageIndexLists[limitationindex] >= 10)
|
|
|
+ //{
|
|
|
+ // //删除大于10或等于10之后的Item
|
|
|
+ // converterDialogsModel.PageIndexLists.RemoveRange(limitationindex, converterDialogsModel.PageIndexLists.Count - limitationindex);
|
|
|
+ //}
|
|
|
+
|
|
|
+ //链表10页
|
|
|
+ if (converterDialogsModel.PageIndexLists.Count >= 11)
|
|
|
{
|
|
|
- converterDialogsModel.PageIndexLists.RemoveRange(converterDialogsModel.PageIndexLists.IndexOf(11), converterDialogsModel.PageIndexLists.Count - converterDialogsModel.PageIndexLists.IndexOf(11));
|
|
|
+ converterDialogsModel.PageIndexLists.RemoveRange(10, converterDialogsModel.PageIndexLists.Count-10);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
public async void OnOpened(Prism.Services.Dialogs.DialogResult e)
|