/// <summary> /// 7.显示影片信息 /// </summary> /// <param name="tag"></param> private static void GoToDisPlay(LiuXingType tag) { if (tag != null) { if (tag.Type == LiuXingEnum.DyfmHotApi) { PublicStatic.ThisHot.BackgroundImage = tag.Img; } else { switch (PublicStatic.DisPlayStyle) { case LiuXingStyle.DisPlayTile: { MainInterFace.Owner.Parent.Invoke( new System.Windows.Forms.MethodInvoker (() => { var ssss = new MetroForTile(tag); if (PublicStatic.LiuXingCon != null && PublicStatic.LiuXingCon.Visible) { try { PublicStatic.LiuXingCon.Controls.Add(ssss); } // ReSharper disable EmptyGeneralCatchClause catch // ReSharper restore EmptyGeneralCatchClause { } } } )); } break; } } } }
public static void StartLocalVodList() { var vodLists = FileCachoHelper.ReadThisVodList(); if (vodLists != null && vodLists.Count > 0) { foreach (var liuXingType in vodLists) { var type = liuXingType; if (type != null) { MainInterFace.Owner.Parent.Invoke( new System.Windows.Forms.MethodInvoker (() => { var ssss = new MetroForTile(type); if (PublicStatic.LiuXingCon != null) { try { PublicStatic.LiuXingCon.Controls.Add(ssss); } // ReSharper disable EmptyGeneralCatchClause catch // ReSharper restore EmptyGeneralCatchClause { } } } )); } } } }