Show / Hide Table of Contents

Class DVRViewModel

View model for DVR.

Inheritance
System.Object
ViewModelBase<DVRView>
TabItemViewModel<DVRView>
DVRViewModel
Implements
IViewInitialize
IDVRViewProvider
IViewProvider
IClosingNotification
Inherited Members
TabItemViewModel<DVRView>.FocusView()
TabItemViewModel<DVRView>.LogOnlyIfTabActive(String, String, Object[])
TabItemViewModel<DVRView>.LogOnlyIfTabActive(String, LogSeverity, String, Object[])
TabItemViewModel<DVRView>.LogOnlyIfTabActive(String, Guid, String, Object[])
TabItemViewModel<DVRView>.LogOnlyIfTabActive(String, Guid, LogSeverity, String, Object[])
TabItemViewModel<DVRView>.LoglineOnlyIfTabActive(String, String, Object[])
TabItemViewModel<DVRView>.LoglineOnlyIfTabActive(String, LogSeverity, String, Object[])
TabItemViewModel<DVRView>.LoglineOnlyIfTabActive(String, Guid, String, Object[])
TabItemViewModel<DVRView>.LoglineOnlyIfTabActive(String, Guid, LogSeverity, String, Object[])
TabItemViewModel<DVRView>.LogExceptionOnlyIfTabActive(String, LogSeverity, Exception)
TabItemViewModel<DVRView>.LogCriticalExceptionOnlyIfTabActive(String, Exception)
ViewModelBase<DVRView>.Closed
ViewModelBase<DVRView>.IsClosable
ViewModelBase<DVRView>.IsDockable
ViewModelBase<DVRView>.HeaderName
ViewModelBase<DVRView>.View
ViewModelBase<DVRView>.IViewProvider.View
ViewModelBase<DVRView>.EventAggregator
ViewModelBase<DVRView>.Logger
ViewModelBase<DVRView>.Closing(CancelEventArgs)
ViewModelBase<DVRView>.IViewInitialize.Initialize()
ViewModelBase<DVRView>.IViewInitialize.Uninitialize()
ViewModelBase<DVRView>.IClosingNotification.Closed(EventArgs)
ViewModelBase<DVRView>.OnClosing(CancelEventArgs)
ViewModelBase<DVRView>.OnClosed()
ViewModelBase<DVRView>.CloseView()
Namespace: Phoenix.DVR
Assembly: Phoenix.Plugin.DVR.dll
Syntax
public class DVRViewModel : TabItemViewModel<DVRView>, IViewInitialize, IDVRViewProvider, IViewProvider, IClosingNotification

Constructors

View Source

DVRViewModel(DVRView, IWindowingControl, IEventAggregator, IPhoenixLogger, ISettingsManager, IHotkeyManager)

Initializes a new instance of the DVRViewModel class.

Declaration
public DVRViewModel(DVRView view, IWindowingControl windowing, IEventAggregator eventAggregator, IPhoenixLogger logger, ISettingsManager settingsManager, IHotkeyManager hotkeyManager)
Parameters
Type Name Description
DVRView view

The view this view model is driving.

IWindowingControl windowing
IEventAggregator eventAggregator

The event aggregator for the application.

IPhoenixLogger logger

The logger for the application.

ISettingsManager settingsManager
IHotkeyManager hotkeyManager

Fields

View Source

Name

The tab header name.

Declaration
public const string Name = "DVR"
Field Value
Type Description
System.String

Properties

View Source

CaptureCommand

Gets the capture command

Declaration
public DelegateCommand CaptureCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

CurrentDevice

Gets or sets the current device.

Declaration
public IDevice CurrentDevice { get; set; }
Property Value
Type Description
IDevice
View Source

CurrentDeviceDisconnected

Gets a value indicating whether or not the current device is disconnected.

Declaration
public bool CurrentDeviceDisconnected { get; }
Property Value
Type Description
System.Boolean
View Source

CurrentDuration

Gets or sets the currently selected timespan.

Declaration
public TimeSpan CurrentDuration { get; set; }
Property Value
Type Description
System.TimeSpan
View Source

DeleteVideosCommand

Gets the delete videos command

Declaration
public DelegateCommand<object> DeleteVideosCommand { get; }
Property Value
Type Description
DelegateCommand<System.Object>
View Source

HotkeyManager

Gets the hotkey manager.

Declaration
public IHotkeyManager HotkeyManager { get; }
Property Value
Type Description
IHotkeyManager
View Source

OpenInMovieMakerCommand

Gets the command to open Windows Live Movie Maker.

Declaration
public DelegateCommand<FileInfo> OpenInMovieMakerCommand { get; }
Property Value
Type Description
DelegateCommand<System.IO.FileInfo>
View Source

OpenVideoLocationCommand

Gets the open video location command

Declaration
public DelegateCommand OpenVideoLocationCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

PlayVideoCommand

Gets the play video command

Declaration
public DelegateCommand<IVideoPlayer> PlayVideoCommand { get; }
Property Value
Type Description
DelegateCommand<IVideoPlayer>
View Source

RefreshVideoListCommand

Gets the refresh video list command

Declaration
public DelegateCommand RefreshVideoListCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

Running

Gets or sets a value indicating whether or not the DVR Capturer is running.

Declaration
public bool Running { get; set; }
Property Value
Type Description
System.Boolean
View Source

ValidDurations

Gets the valid durations for a DVR recording.

Declaration
public Collection<TimeSpan> ValidDurations { get; }
Property Value
Type Description
System.Collections.ObjectModel.Collection<System.TimeSpan>
View Source

Videos

Gets an observable collection of FileInfo

Declaration
public ObservableCollection<FileInfo> Videos { get; }
Property Value
Type Description
System.Collections.ObjectModel.ObservableCollection<System.IO.FileInfo>

Methods

View Source

Initialize()

Initializes phoenix managed resources all modules are loaded.

Declaration
protected override void Initialize()
Overrides
Phoenix.Views.ViewModelBase<Phoenix.DVR.DVRView>.Initialize()
View Source

OnViewChanged(Object, DependencyPropertyChangedEventArgs)

Updates the logger with the active tabs.

Declaration
protected override void OnViewChanged(object sender, DependencyPropertyChangedEventArgs e)
Parameters
Type Name Description
System.Object sender

The tab being updated.

System.Windows.DependencyPropertyChangedEventArgs e

The tab's status (whether or not it is visible).

Overrides
Phoenix.Views.TabItemViewModel<Phoenix.DVR.DVRView>.OnViewChanged(System.Object, System.Windows.DependencyPropertyChangedEventArgs)
View Source

RegisterHotkey()

Registers the hotkey for dvr capture.

Declaration
public void RegisterHotkey()
View Source

Uninitialize()

Uninitializes phoenix managed resources when closed.

Declaration
protected override void Uninitialize()
Overrides
Phoenix.Views.ViewModelBase<Phoenix.DVR.DVRView>.Uninitialize()

Implements

IViewInitialize
IDVRViewProvider
IViewProvider
IClosingNotification
  • View Source
In This Article
Back to top Generated by DocFX