C# Class LogApplication.ViewModels.ApplicationViewModel

If you add a new function / filter assure the following * Check that application is active: IsActive * Check that you got logs from selected loglevel: GetLogsByLevel() * Check if the namespace is active: IsNamespaceActive() * Check if the search criteria match: IsSearchCriteriaMatch()
Inheritance: INotifyPropertyChanged
显示文件 Open project: dabeku/Loginator Class Usage Examples

Private Properties

Property Type Description
GetLogsByLevel List
IsNamespaceActive bool
IsNamespaceActive bool
IsSearchCriteriaMatch bool
OnPropertyChanged void
UpdateByActiveChange void
UpdateByLogLevelChange void

Public Methods

Method Description
AddLog ( LogViewModel log ) : void
ApplicationViewModel ( string name, OrderedObservableCollection logs, ObservableCollection namespaces ) : Common.System
ClearLogs ( ) : void
UpdateByNamespaceChange ( NamespaceViewModel ns ) : void
UpdateMaxNumberOfLogs ( int maxNumberOfLogs ) : void
UpdateSearchCriteria ( string criteria, bool isSearchCriteriaInverted ) : void

Private Methods

Method Description
GetLogsByLevel ( Backend.Model.LoggingLevel level ) : List
IsNamespaceActive ( LogViewModel log ) : bool
IsNamespaceActive ( NamespaceViewModel parent, string suffix ) : bool
IsSearchCriteriaMatch ( LogViewModel log ) : bool
OnPropertyChanged ( string property ) : void
UpdateByActiveChange ( bool oldIsActive, bool newIsActive ) : void
UpdateByLogLevelChange ( Backend.Model.LoggingLevel oldLogLevel, Backend.Model.LoggingLevel newLogLevel ) : void

Method Details

AddLog() public method

public AddLog ( LogViewModel log ) : void
log LogViewModel
return void

ApplicationViewModel() public method

public ApplicationViewModel ( string name, OrderedObservableCollection logs, ObservableCollection namespaces ) : Common.System
name string
logs OrderedObservableCollection
namespaces ObservableCollection
return Common.System

ClearLogs() public method

public ClearLogs ( ) : void
return void

UpdateByNamespaceChange() public method

public UpdateByNamespaceChange ( NamespaceViewModel ns ) : void
ns NamespaceViewModel
return void

UpdateMaxNumberOfLogs() public method

public UpdateMaxNumberOfLogs ( int maxNumberOfLogs ) : void
maxNumberOfLogs int
return void

UpdateSearchCriteria() public method

public UpdateSearchCriteria ( string criteria, bool isSearchCriteriaInverted ) : void
criteria string
isSearchCriteriaInverted bool
return void