• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# MediaPortal类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中MediaPortal的典型用法代码示例。如果您正苦于以下问题:C# MediaPortal类的具体用法?C# MediaPortal怎么用?C# MediaPortal使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



MediaPortal类属于命名空间,在下文中一共展示了MediaPortal类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: DoSpell

 private void DoSpell(MediaPortal.GUI.Library.Action.ActionType remoteNum)
 {
     switch (remoteNum)
     {
         case MediaPortal.GUI.Library.Action.ActionType.REMOTE_2:
             GetSortChar("ABC");
             break;
         case MediaPortal.GUI.Library.Action.ActionType.REMOTE_3:
             GetSortChar("DEF");
             break;
         case MediaPortal.GUI.Library.Action.ActionType.REMOTE_4:
             GetSortChar("GHI");
             break;
         case MediaPortal.GUI.Library.Action.ActionType.REMOTE_5:
             GetSortChar("JKL");
             break;
         case MediaPortal.GUI.Library.Action.ActionType.REMOTE_6:
             GetSortChar("MNO");
             break;
         case MediaPortal.GUI.Library.Action.ActionType.REMOTE_7:
             GetSortChar("PQRS");
             break;
         case MediaPortal.GUI.Library.Action.ActionType.REMOTE_8:
             GetSortChar("TUV");
             break;
         case MediaPortal.GUI.Library.Action.ActionType.REMOTE_9:
             GetSortChar("WXYZ");
             break;
     }
     doFacadeSort();
 }
开发者ID:andrewjswan,项目名称:mvcentral,代码行数:31,代码来源:GUISort.cs


示例2: OnClicked

 protected override void OnClicked(int controlId, GUIControl control, MediaPortal.GUI.Library.Action.ActionType actionType)
 {
     if (control == serverListGUI)
     {
         onServerListGUI();
     }
 }
开发者ID:troop,项目名称:MP-Jinzora-Plugin,代码行数:7,代码来源:ServerListGUI.cs


示例3: OnClicked

 protected override void OnClicked(int controlId, GUIControl control, MediaPortal.GUI.Library.Action.ActionType actionType)
 {
     if (control == btDoUpdate)
       {
     //install the patch(s)
     installUpdateGUI();
     // tell the user what has been done
     cmc_ChangeLog.Visible = false;
     btDoUpdate.Visible = false;
     if (StreamedMPConfig.manualInstallNeeded)
     {
       GUIDialogOK dlgDone = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK);
       dlgDone.SetHeading(Translation.mupdateheader);
       dlgDone.SetLine(1, Translation.mupdateline1);
       dlgDone.SetLine(2, Translation.mupdateline2);
       dlgDone.SetLine(3, string.Format(Translation.mupdateline3, Path.GetFileName(optionDownloadPath)));
       dlgDone.SetLine(4, Translation.mupdateline4);
       dlgDone.DoModal(GUIWindowManager.ActiveWindow);
     }
     else
     {
       if (!updateCancelled)
       {
     GUIDialogOK dlgDone = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK);
     dlgDone.SetHeading(Translation.SkinUpdate);
     dlgDone.SetLine(1, string.Format(Translation.NumPatchesInstalled, updateCheck.patchList.Count.ToString()));
     dlgDone.SetLine(2, String.Empty);
     dlgDone.SetLine(3, string.Format(Translation.PatchUpdateComplete, updateCheck.SkinVersion()));
     dlgDone.DoModal(GUIWindowManager.ActiveWindow);
       }
     }
     GUIWindowManager.ShowPreviousWindow();
     StreamedMPConfig.updateAvailable = false;
       }
 }
开发者ID:MichelZ,项目名称:streamedmp-michelz,代码行数:35,代码来源:SkinUpdateGUI.cs


示例4: OnAction

        public override void OnAction(MediaPortal.GUI.Library.Action action)
        {
            if (action.wID == MediaPortal.GUI.Library.Action.ActionType.ACTION_VOLUME_UP ||
              action.wID == MediaPortal.GUI.Library.Action.ActionType.ACTION_VOLUME_DOWN ||
              action.wID == MediaPortal.GUI.Library.Action.ActionType.ACTION_VOLUME_MUTE)
              {
            // MediaPortal core sends this message to the Fullscreenwindow, we need to do it ourselves to make the Volume OSD show up
            base.OnAction(new MediaPortal.GUI.Library.Action(MediaPortal.GUI.Library.Action.ActionType.ACTION_SHOW_VOLUME, 0, 0));
            return;
              }
              else if (action.wID == MediaPortal.GUI.Library.Action.ActionType.ACTION_CONTEXT_MENU)
              {
            OnShowContextMenu();
            return;
              }
              else
              {
            var translatedAction = new MediaPortal.GUI.Library.Action();
            if (ActionTranslator.GetAction((int) GUIWindow.Window.WINDOW_FULLSCREEN_VIDEO, action.m_key,
                                       ref translatedAction))
            {
              if (translatedAction.wID == MediaPortal.GUI.Library.Action.ActionType.ACTION_SHOW_OSD)
              {
            GUIPropertyManager.SetProperty("#Youtube.fm.FullScreen.ShowTitle", "false");
            GUIPropertyManager.SetProperty("#Youtube.fm.FullScreen.ShowNextTitle", "false");
            base.OnAction(translatedAction);
            if (GUIWindowManager.VisibleOsd == GUIWindow.Window.WINDOW_OSD)
            {
              GUIWindowManager.VisibleOsd = (GUIWindow.Window) MyFilms.ID_MyFilmsTrailerOSD;
            }
            return;
              }
              if (translatedAction.wID == MediaPortal.GUI.Library.Action.ActionType.ACTION_ASPECT_RATIO)
              {
            base.OnAction(translatedAction);
            return;
              }
            }
              }
              if (action.wID == MediaPortal.GUI.Library.Action.ActionType.ACTION_NEXT_ITEM || action.wID == MediaPortal.GUI.Library.Action.ActionType.ACTION_NEXT_CHAPTER)
              {
            if (MyFilms.currentTrailerMoviesList.Count > 1)
            {
              // MyFilms.player.PlayNext();
              return;
            }
              }

              if (action.wID == MediaPortal.GUI.Library.Action.ActionType.ACTION_PREV_ITEM || action.wID == MediaPortal.GUI.Library.Action.ActionType.ACTION_PREV_CHAPTER)
              {
            if (MyFilms.currentTrailerMoviesList.Count > 1)
            {
              // MyFilms.player.PlayPrevious();
              return;
            }
              }

              base.OnAction(action);
        }
开发者ID:GuzziMP,项目名称:my-films,代码行数:59,代码来源:MyFilmsVideoFullscreen.cs


示例5: MpDialogSelect

 public MpDialogSelect(MediaPortal.Dialogs.GUIDialogSelect menu)
     : base(menu)
 {
     this.DialogType = menu.GetModuleName();
     this.DialogId = menu.GetID;
     this.AvailableActions.Add("ok");
     this.AvailableActions.Add("cancel");
 }
开发者ID:johanj,项目名称:WifiRemote,代码行数:8,代码来源:MpDialogSelect.cs


示例6: EnterModelContext

		public void EnterModelContext(MediaPortal.UI.Presentation.Workflow.NavigationContext oldContext, MediaPortal.UI.Presentation.Workflow.NavigationContext newContext)
		{
			// reset the properties
			UpdateInfo = string.Empty;
			UpdateProgress = 0;
			// start the update in a background thread
			RunUpdate(newContext);
		}
开发者ID:leesanghyun2,项目名称:mp-onlinevideos2,代码行数:8,代码来源:SiteUpdateWorkflowModels.cs


示例7: IsTraktRatingDialog

 /// <summary>
 /// Check if a dialog is a trakt rating dialog
 /// </summary>
 /// <param name="dialog">Dialog</param>
 /// <returns>true/false ;)</returns>
 internal static bool IsTraktRatingDialog(MediaPortal.Dialogs.GUIDialogWindow dialog)
 {
     if (dialog.GetType().Equals(typeof(TraktPlugin.GUI.GUIRateDialog)))
     {
         return true;
     }
     else
     {
         return false;
     }
 }
开发者ID:Kucheek,项目名称:WifiRemote,代码行数:16,代码来源:TraktHelper.cs


示例8: OnAction

        public override void OnAction(MediaPortal.GUI.Library.Action action)
        {
            if (facadeControl.Focus == true)
            {
                if (action.wID == MediaPortal.GUI.Library.Action.ActionType.ACTION_MOVE_DOWN || action.wID == MediaPortal.GUI.Library.Action.ActionType.ACTION_MOVE_UP)
                {

                }
            }
            base.OnAction(action);
        }
开发者ID:troop,项目名称:MP-Jinzora-Plugin,代码行数:11,代码来源:GenrenInterpretAlbumGUI.cs


示例9: MpDialogNotify

        public MpDialogNotify(MediaPortal.Dialogs.GUIDialogNotify menu)
            : base(menu)
        {
            this.dialogMenu = menu;
            this.DialogType = menu.GetModuleName();
            this.DialogId = menu.GetID;
            this.AvailableActions.Add("ok");
            this.AvailableActions.Add("cancel");

            GetHeading(menu, 4);
        }
开发者ID:johanj,项目名称:WifiRemote,代码行数:11,代码来源:MpDialogNotify.cs


示例10: OnClicked

 protected override void OnClicked(int controlId, GUIControl control, MediaPortal.GUI.Library.Action.ActionType actionType)
 {
     if (control == hidePlaylistButton)
     {
         WindowManager.ShowPlayList();
     }
     if (control == playlistControl)
     {
         onPlaylistControl();
     }
 }
开发者ID:troop,项目名称:MP-Jinzora-Plugin,代码行数:11,代码来源:PlayListGUI.cs


示例11: OnAction

 public override void OnAction(MediaPortal.GUI.Library.Action action)
 {
     if (action.wID == MediaPortal.GUI.Library.Action.ActionType.ACTION_PREVIOUS_MENU)
     {
         WindowManager.GoBack();
     }
     else
     {
         base.OnAction(action);
     }
 }
开发者ID:troop,项目名称:MP-Jinzora-Plugin,代码行数:11,代码来源:TracksSearchGUI.cs


示例12: MpDialogProgress

        public MpDialogProgress(MediaPortal.Dialogs.GUIDialogProgress menu)
            : base(menu)
        {
            this.dialogMenu = menu;
            this.DialogType = menu.GetModuleName();
            this.DialogId = menu.GetID;
            this.AvailableActions.Add("cancel");
            this.AvailableActions.Add("progress");

            UpdateValues();
        }
开发者ID:johanj,项目名称:WifiRemote,代码行数:11,代码来源:MpDialogProgress.cs


示例13: OnClicked

 protected override void OnClicked(int controlId, GUIControl control, MediaPortal.GUI.Library.Action.ActionType actionType)
 {
     if (control == checkControl)
     {
         onCheckControl();
     }
     if (control == addButton)
     {
         onAddButton();
     }
     base.OnClicked(controlId, control, actionType);
 }
开发者ID:troop,项目名称:MP-Jinzora-Plugin,代码行数:12,代码来源:TracksSearchGUI.cs


示例14: MpDialogOk

        public MpDialogOk(MediaPortal.Dialogs.GUIDialogOK menu)
            : base(menu)
        {
            this.dialogMenu = menu;
            this.DialogType = menu.GetModuleName();
            this.DialogId = menu.GetID;
            this.AvailableActions.Add("ok");
            this.AvailableActions.Add("cancel");

            GetHeading(menu, 1);
            GetText(menu, 2, 3, 4, 5);
        }
开发者ID:johanj,项目名称:WifiRemote,代码行数:12,代码来源:MpDialogOk.cs


示例15: OnAction

 public override void OnAction(MediaPortal.GUI.Library.Action action)
 {
     if (action.wID == MediaPortal.GUI.Library.Action.ActionType.ACTION_CONTEXT_MENU)
       {
     var videoWindow = (MyFilmsGUIVideoFullscreen)GUIWindowManager.GetWindow(29054);
     videoWindow.OnAction(new MediaPortal.GUI.Library.Action(MediaPortal.GUI.Library.Action.ActionType.ACTION_SHOW_OSD, 0, 0));
     videoWindow.OnAction(action);
       }
       else
       {
     base.OnAction(action);
       }
 }
开发者ID:GuzziMP,项目名称:my-films,代码行数:13,代码来源:MyFilmsTrailerGUIOSD.cs


示例16: MpDialogMenu

        public MpDialogMenu(MediaPortal.Dialogs.GUIDialogMenu menu)
            : base(menu)
        {
            this.DialogType = menu.GetModuleName();
            this.DialogId = menu.GetID;
            this.menu = menu;
            this.ListItems = new List<FacadeItem>();

            this.AvailableActions.Add("listselect");
            this.AvailableActions.Add("cancel");

            GetHeading(menu, 4);
        }
开发者ID:johanj,项目名称:WifiRemote,代码行数:13,代码来源:MpDialogMenu.cs


示例17: ExitModelContext

		public void ExitModelContext(MediaPortal.UI.Presentation.Workflow.NavigationContext oldContext, MediaPortal.UI.Presentation.Workflow.NavigationContext newContext)
		{
			// set a flag to stop the update if the thread is still running
			lock (syncObject)
			{
				if (currentBackgroundTask != null) currentBackgroundTask.State = WorkState.CANCELED;
			}
			// wait until the update background thread has ended
			while (currentBackgroundTask != null)
			{
				System.Threading.Thread.Sleep(20);
			}
		}
开发者ID:leesanghyun2,项目名称:mp-onlinevideos2,代码行数:13,代码来源:SiteUpdateWorkflowModels.cs


示例18: OnClicked

        protected override void OnClicked(int controlId, GUIControl control, MediaPortal.GUI.Library.Action.ActionType actionType)
        {
            if (control == facadeView)
            {
                GUIListItemActor actorItem = _currentSelection as GUIListItemActor;
                if (actorItem != null)
                {
                    Movies.Actor = actorItem.ItemId;
                    GUIWindowManager.ActivateWindow((int)MyMovies.GUIWindowID.Main);
                }
            }

            base.OnClicked(controlId, control, actionType);
        }
开发者ID:ReefSmacker,项目名称:MyMovies,代码行数:14,代码来源:MyMoviesActors.cs


示例19: MpDialogRating

        public MpDialogRating(MediaPortal.Dialogs.GUIDialogSetRating dialog)
            : base(dialog)
        {
            this.mpDialog = dialog;
            this.DialogType = dialog.GetModuleName();
            this.DialogId = dialog.GetID;
            this.Rating = dialog.Rating;
            GetHeading(dialog, 2);
            GetText(dialog, 4);

            this.AvailableActions.Add("ok");
            this.AvailableActions.Add("cancel");
            this.AvailableActions.Add("setrating");
        }
开发者ID:johanj,项目名称:WifiRemote,代码行数:14,代码来源:MpDialogRating.cs


示例20: OnAction

        public override void OnAction(MediaPortal.GUI.Library.Action action)
        {
            //if (switchSearchTypeButton.Focus)
            //{
            //    if (action.wID == MediaPortal.GUI.Library.Action.ActionType.)
            //    {

            //    }
            //    if (action.wID == MediaPortal.GUI.Library.Action.ActionType.ACTION_MOVE_LEFT)
            //    {
            //        if (currentitem -1 == -1)
            //        {
            //            currentitem = searcharray.Length - 1;
            //            switchSearchTypeButton.SelectedItem = currentitem;
            //            //switchSearchTypeButton.Label = "SearchType: " + switchSearchTypeButton.SelectedLabel;
            //        }
            //        else
            //        {
            //            currentitem--;
            //            switchSearchTypeButton.SelectedItem = currentitem;
            //        }
            //        switchSearchTypeButton.Label = "SearchType: " + switchSearchTypeButton.SelectedLabel;
            //    }
            //    if (action.wID == MediaPortal.GUI.Library.Action.ActionType.ACTION_MOVE_RIGHT)
            //    {
            //        if (currentitem + 1 == searcharray.Length - 1)
            //        {
            //            currentitem = 0;
            //            switchSearchTypeButton.SelectedItem = currentitem;
            //            //switchSearchTypeButton.Label = "SearchType: " + switchSearchTypeButton.SelectedLabel;
            //        }
            //        else
            //        {
            //            currentitem++;
            //            switchSearchTypeButton.SelectedItem = currentitem;
            //        }
            //        switchSearchTypeButton.Label = "SearchType: " + switchSearchTypeButton.SelectedLabel;
            //    }
            //}
            if (action.wID == MediaPortal.GUI.Library.Action.ActionType.ACTION_PREVIOUS_MENU)
            {
                WindowManager.GoBack();
            }
            else
            {
                base.OnAction(action);
            }
        }
开发者ID:troop,项目名称:MP-Jinzora-Plugin,代码行数:48,代码来源:BaseGUI.cs



注:本文中的MediaPortal类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# MediaProtocol类代码示例发布时间:2022-05-24
下一篇:
C# MediaPlayerLauncher类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap