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
파일 보기 프로젝트 열기: dabeku/Loginator 1 사용 예제들

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