C# Class Catel.LogAnalyzer.ViewModels.ShellViewModel

Shell view model.
Inheritance: MVVM.ViewModelBase
显示文件 Open project: Catel/Catel.LogAnalyzer

Public Properties

Property Type Description
IsLiveViewEnabledProperty PropertyData

Public Methods

Method Description
ShellViewModel ( ILogAnalyzerService logAnalyzerService, IFileWatcherService fileWatcherService, IDispatcherService dispatcherService, IOpenFileService openFileService, IPleaseWaitService pleaseWaitService, IMessageService messageService ) : System

Initializes a new instance of the ShellViewModel class.

Private Methods

Method Description
DocumentChanged ( object sender, ICSharpCode.AvalonEdit.Document.DocumentChangeEventArgs e ) : void
OnExitCommandExecute ( ) : void

Method to invoke when the ExitCommand command is executed.

OnFilterPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
OnIsLiveViewEnabledChanged ( ) : void

Called when live view changed.

OnLoadFileExecute ( string fileName ) : void

Method to invoke when the LoadFile command is executed.

OnOpenFileCommandExecute ( ) : void

Method to invoke when the OpenFileCommand command is executed.

OnParseCommandCanExecute ( ) : bool

Method to check whether the ParseCommand command can be executed.

OnParseCommandExecute ( ) : void

Method to invoke when the ParseCommand command is executed.

SubscribeToFileChanges ( ) : void

Subscribes to file changes.

Method Details

ShellViewModel() public method

Initializes a new instance of the ShellViewModel class.
public ShellViewModel ( ILogAnalyzerService logAnalyzerService, IFileWatcherService fileWatcherService, IDispatcherService dispatcherService, IOpenFileService openFileService, IPleaseWaitService pleaseWaitService, IMessageService messageService ) : System
logAnalyzerService ILogAnalyzerService
fileWatcherService IFileWatcherService
dispatcherService IDispatcherService
openFileService IOpenFileService
pleaseWaitService IPleaseWaitService
messageService IMessageService
return System

Property Details

IsLiveViewEnabledProperty public_oe static_oe property

Register the IsLiveViewEnabled property so it is known in the class.
public static PropertyData IsLiveViewEnabledProperty
return PropertyData