C# Класс 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()
Наследование: INotifyPropertyChanged
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetLogsByLevel List
IsNamespaceActive bool
IsNamespaceActive bool
IsSearchCriteriaMatch bool
OnPropertyChanged void
UpdateByActiveChange void
UpdateByLogLevelChange void

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AddLog() публичный Метод

public AddLog ( LogViewModel log ) : void
log LogViewModel
Результат void

ApplicationViewModel() публичный Метод

public ApplicationViewModel ( string name, OrderedObservableCollection logs, ObservableCollection namespaces ) : Common.System
name string
logs OrderedObservableCollection
namespaces ObservableCollection
Результат Common.System

ClearLogs() публичный Метод

public ClearLogs ( ) : void
Результат void

UpdateByNamespaceChange() публичный Метод

public UpdateByNamespaceChange ( NamespaceViewModel ns ) : void
ns NamespaceViewModel
Результат void

UpdateMaxNumberOfLogs() публичный Метод

public UpdateMaxNumberOfLogs ( int maxNumberOfLogs ) : void
maxNumberOfLogs int
Результат void

UpdateSearchCriteria() публичный Метод

public UpdateSearchCriteria ( string criteria, bool isSearchCriteriaInverted ) : void
criteria string
isSearchCriteriaInverted bool
Результат void