本文整理汇总了C#中IPresentationManager类的典型用法代码示例。如果您正苦于以下问题:C# IPresentationManager类的具体用法?C# IPresentationManager怎么用?C# IPresentationManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IPresentationManager类属于命名空间,在下文中一共展示了IPresentationManager类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: PageContentViewModel
public PageContentViewModel(INavigationService navigationService, ISessionManager sessionManager, IPlaybackManager playbackManager, ILogger logger, ITheaterApplicationHost appHost, IApiClient apiClient, IPresentationManager presentationManager, IServerEvents serverEvents)
{
NavigationService = navigationService;
SessionManager = sessionManager;
PlaybackManager = playbackManager;
Logger = logger;
AppHost = appHost;
ApiClient = apiClient;
PresentationManager = presentationManager;
ServerEvents = serverEvents;
MasterCommands = new MasterCommandsViewModel(navigationService, sessionManager, presentationManager, apiClient, logger, appHost, serverEvents);
NavigationService.Navigated += NavigationServiceNavigated;
SessionManager.UserLoggedIn += SessionManagerUserLoggedIn;
SessionManager.UserLoggedOut += SessionManagerUserLoggedOut;
PlaybackManager.PlaybackStarted += PlaybackManager_PlaybackStarted;
PlaybackManager.PlaybackCompleted += PlaybackManager_PlaybackCompleted;
_dispatcher = Dispatcher.CurrentDispatcher;
_clockTimer = new Timer(ClockTimerCallback, null, 0, 10000);
IsLoggedIn = SessionManager.CurrentUser != null;
var page = NavigationService.CurrentPage;
IsOnHomePage = page is IHomePage;
IsOnFullscreenVideo = page is IFullscreenVideoPage;
}
开发者ID:Rainking720,项目名称:MediaBrowser.Theater,代码行数:28,代码来源:PageContentViewModel.cs
示例2: MainWindow
/// <summary>
/// Initializes a new instance of the <see cref="MainWindow" /> class.
/// </summary>
public MainWindow(ILogger logger, IPlaybackManager playbackManager, IApiClient apiClient, IImageManager imageManager, IApplicationHost appHost, IPresentationManager appWindow, IUserInputManager userInput, ITheaterConfigurationManager config, INavigationService nav, IScreensaverManager screensaverManager)
: base()
{
_logger = logger;
_appHost = appHost;
_appWindow = appWindow;
_config = config;
_playbackManager = playbackManager;
UserInputManager = userInput;
NavigationManager = nav;
Loaded += MainWindow_Loaded;
InitializeComponent();
RotatingBackdrops = new RotatingBackdropsViewModel(apiClient, _config, imageManager, playbackManager, logger, screensaverManager);
_config.ConfigurationUpdated += _config_ConfigurationUpdated;
_playbackManager.PlaybackStarted += _playbackManager_PlaybackStarted;
_playbackManager.PlaybackCompleted += _playbackManager_PlaybackCompleted;
//Timeline.DesiredFrameRateProperty.OverrideMetadata(
// typeof(Timeline),
// new FrameworkPropertyMetadata { DefaultValue = 30 }
//);
}
开发者ID:Rainking720,项目名称:MediaBrowser.Theater,代码行数:29,代码来源:MainWindow.xaml.cs
示例3: LogoScreensaverWindow
public LogoScreensaverWindow(IPresentationManager presentationManager, IScreensaverManager screensaverManager, ILogger logger) : base(presentationManager, screensaverManager, logger)
{
InitializeComponent();
DataContext = this;
Loaded += LogoScreensaver_Loaded;
}
开发者ID:Rainking720,项目名称:MediaBrowser.Theater,代码行数:7,代码来源:LogoScreensaverWindow.xaml.cs
示例4: FavoritesViewModel
public FavoritesViewModel(IPresentationManager presentation, IImageManager imageManager, IApiClient apiClient, ISessionManager session, INavigationService nav, IPlaybackManager playback, ILogger logger, double tileWidth, double tileHeight, IServerEvents serverEvents)
: base(presentation, apiClient)
{
_sessionManager = session;
_playbackManager = playback;
_imageManager = imageManager;
_navService = nav;
_logger = logger;
_serverEvents = serverEvents;
TileWidth = tileWidth;
TileHeight = tileHeight;
var spotlightTileWidth = TileWidth * 2 + TilePadding;
var spotlightTileHeight = spotlightTileWidth * 9 / 16;
SpotlightViewModel = new ImageViewerViewModel(_imageManager, new List<ImageViewerImage>())
{
Height = spotlightTileHeight,
Width = spotlightTileWidth,
CustomCommandAction = i => _navService.NavigateToItem(i.Item, ViewType.Tv)
};
LoadViewModels();
NavigateToFavoriteMoviesCommand = new RelayCommand(o => NavigateToFavorites("Movie"));
}
开发者ID:jfrankelp,项目名称:MediaBrowser.Theater,代码行数:27,代码来源:FavoritesViewModel.cs
示例5: UserProfileWindow
public UserProfileWindow(DefaultThemePageMasterCommandsViewModel masterCommands, ISessionManager session, IPresentationManager presentationManager, IImageManager imageManager, IApiClient apiClient, DisplayPreferences displayPreferences, ListPageConfig options)
{
_session = session;
_options = options;
_displayPreferencesViewModel = new DisplayPreferencesViewModel(displayPreferences, presentationManager);
_previousFocus = "";
InitializeComponent();
Loaded += UserProfileWindow_Loaded;
Unloaded += UserProfileWindow_Unloaded;
masterCommands.PageNavigated += masterCommands_PageNavigated;
BtnClose.Click += BtnClose_Click;
//Display preferences
RadioList.Click += radioList_Click;
RadioPoster.Click += radioPoster_Click;
RadioThumbstrip.Click += radioThumbstrip_Click;
RadioPosterStrip.Click += radioPosterStrip_Click;
//Sort preferences
RadioSortAscending.Click += RadioSortAscending_Click;
RadioSortDescending.Click += RadioSortDescending_Click;
//Focus tracking
BtnClose.IsKeyboardFocusedChanged += Button_IsKeyboardFocusedChanged;
HomeButton.IsKeyboardFocusedChanged += Button_IsKeyboardFocusedChanged;
DisplayPreferencesButton.IsKeyboardFocusedChanged += Button_IsKeyboardFocusedChanged;
SortButton.IsKeyboardFocusedChanged += Button_IsKeyboardFocusedChanged;
SettingsButton.IsKeyboardFocusedChanged += Button_IsKeyboardFocusedChanged;
LogoutButton.IsKeyboardFocusedChanged += Button_IsKeyboardFocusedChanged;
ShutdownAppButton.IsKeyboardFocusedChanged += Button_IsKeyboardFocusedChanged;
SleepButton.IsKeyboardFocusedChanged += Button_IsKeyboardFocusedChanged;
RestartButton.IsKeyboardFocusedChanged += Button_IsKeyboardFocusedChanged;
ShutdownButton.IsKeyboardFocusedChanged += Button_IsKeyboardFocusedChanged;
RadioList.IsKeyboardFocusedChanged += Button_IsKeyboardFocusedChanged;
RadioPosterStrip.IsKeyboardFocusedChanged += Button_IsKeyboardFocusedChanged;
RadioPoster.IsKeyboardFocusedChanged += Button_IsKeyboardFocusedChanged;
RadioThumbstrip.IsKeyboardFocusedChanged += Button_IsKeyboardFocusedChanged;
RadioSortAscending.IsKeyboardFocusedChanged += Button_IsKeyboardFocusedChanged;
RadioSortDescending.IsKeyboardFocusedChanged += Button_IsKeyboardFocusedChanged;
CheckBoxSortRemember.IsKeyboardFocusedChanged += Button_IsKeyboardFocusedChanged;
ContentGrid.DataContext = new DefaultThemeUserDtoViewModel(masterCommands, apiClient, imageManager, session)
{
User = session.CurrentUser,
ImageHeight = 54
};
MainGrid.DataContext = this;
CheckBoxSortRemember.DataContext = _displayPreferencesViewModel;
if (displayPreferences != null)
{
//Always set to false to begin with in case the user is just doing a quick sort and doesn't want it saved.
_displayPreferencesViewModel.RememberSorting = false;
}
}
开发者ID:pjrollo2000,项目名称:MediaBrowser.Theater,代码行数:60,代码来源:UserProfileWindow.xaml.cs
示例6: CommandActionsEntryPoint
public CommandActionsEntryPoint(ICommandManager commandManager, IPresentationManager presentationManager, IPlaybackManager playbackManager, INavigationService navigationService, IScreensaverManager screensaverManager, ILogManager logManager)
{
_commandManager = commandManager;
_defaultCommandActionMap = new DefaultCommandActionMap(presentationManager, playbackManager, navigationService, screensaverManager, logManager);
_logger = logManager.GetLogger(GetType().Name);
}
开发者ID:Rainking720,项目名称:MediaBrowser.Theater,代码行数:7,代码来源:CommandActionsEntryPoint.cs
示例7: CriticReviewListViewModel
public CriticReviewListViewModel(IPresentationManager presentationManager, IApiClient apiClient, IImageManager imageManager, string itemId)
{
ImageManager = imageManager;
_itemId = itemId;
ApiClient = apiClient;
PresentationManager = presentationManager;
}
开发者ID:Rainking720,项目名称:MediaBrowser.Theater,代码行数:7,代码来源:CriticReviewListViewModel.cs
示例8: InternalDirectShowPlayer
public InternalDirectShowPlayer(ILogManager logManager, IHiddenWindow hiddenWindow, IPresentationManager presentation, ISessionManager sessionManager, IPlaybackManager playbackManager, ITheaterConfigurationManager config, IIsoManager isoManager, IUserInputManager inputManager, IZipClient zipClient, IHttpClient httpClient, IConnectionManager connectionManager)
{
_logger = logManager.GetLogger("InternalDirectShowPlayer");
_hiddenWindow = hiddenWindow;
_presentation = presentation;
_sessionManager = sessionManager;
_httpClient = httpClient;
_connectionManager = connectionManager;
_playbackManager = playbackManager;
_config = config;
_isoManager = isoManager;
_inputManager = inputManager;
_zipClient = zipClient;
_config.Configuration.InternalPlayerConfiguration.VideoConfig.SetDefaults();
_config.Configuration.InternalPlayerConfiguration.AudioConfig.SetDefaults();
_config.Configuration.InternalPlayerConfiguration.SubtitleConfig.SetDefaults();
_config.Configuration.InternalPlayerConfiguration.COMConfig.SetDefaults();
//use a static object so we keep the libraries in the same place. Doesn't usually matter, but the EVR Presenter does some COM hooking that has problems if we change the lib address.
//if (_privateCom == null)
// _privateCom = new URCOMLoader(_config, _zipClient);
URCOMLoader.Instance.Initialize(_config, _zipClient, logManager);
EnsureMediaFilters();
}
开发者ID:chandum2,项目名称:Emby.Theater,代码行数:26,代码来源:InternalDirectShowPlayer.cs
示例9: UserListViewModel
public UserListViewModel(IPresentationManager presentationManager, IImageManager imageManager, ISessionManager sessionManager, IApiClient apiClient)
{
ApiClient = apiClient;
SessionManager = sessionManager;
ImageManager = imageManager;
PresentationManager = presentationManager;
}
开发者ID:chandum2,项目名称:Emby.Theater,代码行数:7,代码来源:UserListViewModel.cs
示例10: PluginCategoryListViewModel
public PluginCategoryListViewModel(IPresentationManager presentationManager, IInstallationManager installationManager, INavigationService nav, IApplicationHost appHost)
{
_presentationManager = presentationManager;
_installationManager = installationManager;
_nav = nav;
_appHost = appHost;
}
开发者ID:Rainking720,项目名称:MediaBrowser.Theater,代码行数:7,代码来源:PluginCategoryListViewModel.cs
示例11: UserListViewModel
public UserListViewModel(IPresentationManager presentationManager, IConnectionManager connectionManager, IImageManager imageManager, ISessionManager sessionManager, INavigationService navigation)
{
SessionManager = sessionManager;
ImageManager = imageManager;
ConnectionManager = connectionManager;
PresentationManager = presentationManager;
}
开发者ID:Ceten,项目名称:MediaBrowser.Theater,代码行数:7,代码来源:UserListViewModel.cs
示例12: StartupWizardXyVsFilter
public StartupWizardXyVsFilter(INavigationService nav, IPresentationManager presentation, IMediaFilters mediaFilters)
{
_nav = nav;
_presentation = presentation;
_mediaFilters = mediaFilters;
InitializeComponent();
}
开发者ID:jfrankelp,项目名称:MediaBrowser.Theater,代码行数:7,代码来源:StartupWizardXyVsFilter.xaml.cs
示例13: PluginsPageViewModel
public PluginsPageViewModel(IApplicationHost appHost, INavigationService nav, IInstallationManager installationManager, IPresentationManager presentationManager)
{
_appHost = appHost;
_nav = nav;
_installationManager = installationManager;
_presentationManager = presentationManager;
}
开发者ID:Rainking720,项目名称:MediaBrowser.Theater,代码行数:7,代码来源:PluginsPageViewModel.cs
示例14: ScreensaverManager
public ScreensaverManager(IUserInputManager userInput, IPresentationManager presentationManager, IPlaybackManager playback, ISessionManager session, IApiClient apiClient, ITheaterConfigurationManager theaterConfigurationManager, ILogManager logManager, IServerEvents serverEvents)
{
_userInput = userInput;
_presentationManager = presentationManager;
_playback = playback;
_session = session;
_apiClient = apiClient;
_theaterConfigurationManager = theaterConfigurationManager;
_logger = logManager.GetLogger(GetType().Name);
_serverEvents = serverEvents;
_session.UserLoggedIn += session_UserChanged;
_session.UserLoggedOut += session_UserChanged;
_playback.PlaybackCompleted += _playback_PlaybackCompleted;
_playback.PlaybackStarted += _playback_PlaybackStarted;
_serverEvents.BrowseCommand += _serverEvents_BrowseCommand;
_serverEvents.MessageCommand += _serverEvents_MessageCommand;
_serverEvents.PlayCommand += _serverEvents_PlayCommand;
_serverEvents.PlaystateCommand += _serverEvents_PlaystateCommand;
_serverEvents.GeneralCommand += _serverEvents_GeneralCommand;
SystemEvents.PowerModeChanged += SystemEvents_PowerModeChanged;
StartTimer();
}
开发者ID:Rainking720,项目名称:MediaBrowser.Theater,代码行数:27,代码来源:ScreensaverManager.cs
示例15: NetworkSettingsPage
public NetworkSettingsPage(ITheaterConfigurationManager config, IApiClient apiClient, ISessionManager session, IPresentationManager presentationManager)
{
_config = config;
_apiClient = apiClient;
_session = session;
_presentationManager = presentationManager;
InitializeComponent();
}
开发者ID:jfrankelp,项目名称:MediaBrowser.Theater,代码行数:8,代码来源:NetworkSettingsPage.xaml.cs
示例16: StartupWizardLav
public StartupWizardLav(INavigationService nav, IPresentationManager presentation, IMediaFilters mediaFilters, IApiClient apiClient)
{
_nav = nav;
_presentation = presentation;
_mediaFilters = mediaFilters;
_apiClient = apiClient;
InitializeComponent();
}
开发者ID:Rainking720,项目名称:MediaBrowser.Theater,代码行数:8,代码来源:StartupWizardLav.xaml.cs
示例17: UserListViewModel
public UserListViewModel(IPresentationManager presentationManager, IApiClient apiClient, IImageManager imageManager, ISessionManager sessionManager, INavigationService navigation)
{
SessionManager = sessionManager;
_navigation = navigation;
ImageManager = imageManager;
ApiClient = apiClient;
PresentationManager = presentationManager;
}
开发者ID:Rainking720,项目名称:MediaBrowser.Theater,代码行数:8,代码来源:UserListViewModel.cs
示例18: ConfigurationPage
public ConfigurationPage(INavigationService nav, ITheaterConfigurationManager config, IPresentationManager presentation, IMediaFilters mediaFilters)
{
_nav = nav;
_config = config;
_presentation = presentation;
_mediaFilters = mediaFilters;
InitializeComponent();
}
开发者ID:razorzedge,项目名称:MediaBrowser.Theater,代码行数:8,代码来源:ConfigurationPage.xaml.cs
示例19: StartupWizardPage
public StartupWizardPage(INavigationService nav, IConnectionManager connectionManager, IPresentationManager presentation, ILogger logger)
{
_nav = nav;
_connectionManager = connectionManager;
_presentation = presentation;
_logger = logger;
InitializeComponent();
}
开发者ID:Ceten,项目名称:MediaBrowser.Theater,代码行数:8,代码来源:StartupWizardPage.xaml.cs
示例20: PlaybackManager
public PlaybackManager(ITheaterConfigurationManager configurationManager, ILogger logger, IApiClient apiClient, INavigationService nav, IPresentationManager presentationManager)
{
_configurationManager = configurationManager;
_logger = logger;
_apiClient = apiClient;
_nav = nav;
_presentationManager = presentationManager;
}
开发者ID:jfrankelp,项目名称:MediaBrowser.Theater,代码行数:8,代码来源:PlaybackManager.cs
注:本文中的IPresentationManager类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论