/// <summary>
 ///     看是否存在其中
 /// </summary>
 /// <param name="nowPlayItem"></param>
 /// <returns></returns>
 private static NavItem BackNavItemFromContain(NavItem nowPlayItem)
 {
     if (UserItemLists != null && UserItemLists.Count > 0)
     {
         if (nowPlayItem != null)
         {
             foreach (NavItem userItemList in UserItemLists)
             {
                 if (userItemList.AppName == nowPlayItem.AppName)
                 {
                     return userItemList;
                 }
             }
         }
     }
     return null;
 }
 /// <summary>
 ///     从WatchTV模式转换到NavItem模式
 /// </summary>
 /// <param name="data"></param>
 /// <returns></returns>
 private static NavItem BackNavItemFromWatchTv(WatchTvData data)
 {
     if (data == null) return null;
     var item = new NavItem();
     if (!string.IsNullOrEmpty(data.Name))
     {
         item.AppName = data.Name;
     }
     if (!string.IsNullOrEmpty(data.Url))
     {
         item.AppUrl = data.Url;
     }
     if (data.Size != null && data.Size.Length == 2)
     {
         item.AppWidth = data.Size[0];
         item.AppHeight = data.Size[1];
     }
     return item;
 }
 /// <summary>
 ///     执行取值过程
 /// </summary>
 /// <returns></returns>
 private static NavItem AddThisNavItem()
 {
     string appName = AppName.Text.Trim();
     string appUrl = AppUrl.Text.Trim();
     int appWidth = GetBackSizePara(AppWidth.Text.Trim());
     int appHeight = GetBackSizePara(AppHeight.Text.Trim());
     if (string.IsNullOrEmpty(appName) || appName == AppNameTip)
     {
         MessageBox.Show(@"请输入应用名称", @"警告", MessageBoxButtons.OK,
                         MessageBoxIcon.Warning);
         return null;
     }
     if (string.IsNullOrEmpty(appUrl) || appUrl == AppUrlTip)
     {
         MessageBox.Show(@"请输入应用地址", @"警告", MessageBoxButtons.OK,
                         MessageBoxIcon.Warning);
         return null;
     }
     var item = new NavItem
         {
             AppName = appName,
             AppUrl = appUrl
         };
     if (appWidth != -1 && appHeight != -1)
     {
         item.AppWidth = appWidth;
         item.AppHeight = appHeight;
     }
     else
     {
         item.AppWidth = -1;
         item.AppHeight = -1;
     }
     return item;
 }