Class DVRViewModel
View model for DVR.
Inherited Members
Namespace: Phoenix.DVR
Assembly: Phoenix.Plugin.DVR.dll
Syntax
public class DVRViewModel : TabItemViewModel<DVRView>, IViewInitialize, IDVRViewProvider, IViewProvider, IClosingNotification
Constructors
View SourceDVRViewModel(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 SourceName
The tab header name.
Declaration
public const string Name = "DVR"
Field Value
Type | Description |
---|---|
System.String |
Properties
View SourceCaptureCommand
Gets the capture command
Declaration
public DelegateCommand CaptureCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
CurrentDevice
Gets or sets the current device.
Declaration
public IDevice CurrentDevice { get; set; }
Property Value
Type | Description |
---|---|
IDevice |
CurrentDeviceDisconnected
Gets a value indicating whether or not the current device is disconnected.
Declaration
public bool CurrentDeviceDisconnected { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
CurrentDuration
Gets or sets the currently selected timespan.
Declaration
public TimeSpan CurrentDuration { get; set; }
Property Value
Type | Description |
---|---|
System.TimeSpan |
DeleteVideosCommand
Gets the delete videos command
Declaration
public DelegateCommand<object> DeleteVideosCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand<System.Object> |
HotkeyManager
Gets the hotkey manager.
Declaration
public IHotkeyManager HotkeyManager { get; }
Property Value
Type | Description |
---|---|
IHotkeyManager |
OpenInMovieMakerCommand
Gets the command to open Windows Live Movie Maker.
Declaration
public DelegateCommand<FileInfo> OpenInMovieMakerCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand<System.IO.FileInfo> |
OpenVideoLocationCommand
Gets the open video location command
Declaration
public DelegateCommand OpenVideoLocationCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
PlayVideoCommand
Gets the play video command
Declaration
public DelegateCommand<IVideoPlayer> PlayVideoCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand<IVideoPlayer> |
RefreshVideoListCommand
Gets the refresh video list command
Declaration
public DelegateCommand RefreshVideoListCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
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 |
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> |
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 SourceInitialize()
Initializes phoenix managed resources all modules are loaded.
Declaration
protected override void Initialize()
Overrides
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
RegisterHotkey()
Registers the hotkey for dvr capture.
Declaration
public void RegisterHotkey()
Uninitialize()
Uninitializes phoenix managed resources when closed.
Declaration
protected override void Uninitialize()