SampleSmart 1.0.0.0
SampleSmart 사용 방법을 보여 주는 예제 프로젝트입니다.
로딩중...
검색중...
일치하는것 없음
SampleSmart.Pages.WindowSub.PopupMonitorViewModel 클래스 참조

더 자세히 ...

SampleSmart.Pages.WindowSub.PopupMonitorViewModel에 대한 상속 다이어그램 :
SampleSmart.Pages.WindowSub.PopupMonitorViewModel에 대한 협력 다이어그램:

Public 멤버 함수

 PopupMonitorViewModel (IWindowStateService windowStateService)

Private 멤버 함수

partial void Refresh ()
void OnWindowStateChanged (object? sender, WindowStateChangedEventArgs e)
void RefreshSummary ()
void AppendState (StringBuilder builder, string windowKey)

Private 속성

readonly IWindowStateService _windowStateService
PopupMonitorModel _model
PopupMonitorEvent _event
string _windowStateSummary = string.Empty

상세한 설명

PopupMonitor ViewModel입니다.

PopupMonitor.xaml.ViewModel.cs 파일의 17 번째 라인에서 정의되었습니다.

생성자 & 소멸자 문서화

◆ PopupMonitorViewModel()

SampleSmart.Pages.WindowSub.PopupMonitorViewModel.PopupMonitorViewModel ( IWindowStateService windowStateService)
inline

PopupMonitorViewModel 인스턴스를 생성합니다.

매개변수
windowStateService창 상태 서비스입니다.

PopupMonitor.xaml.ViewModel.cs 파일의 78 번째 라인에서 정의되었습니다.

79 {
80 _model = null!;
81 _event = null!;
82
83 _windowStateService = windowStateService;
84 _windowStateService.StateChanged += OnWindowStateChanged;
85
86 RefreshSummary();
87 }

다음을 참조함 : _event, _model, _windowStateService, OnWindowStateChanged(), RefreshSummary().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

멤버 함수 문서화

◆ AppendState()

void SampleSmart.Pages.WindowSub.PopupMonitorViewModel.AppendState ( StringBuilder builder,
string windowKey )
inlineprivate

Append State 작업을 수행합니다.

매개변수
builderbuilder에 사용할 StringBuilder 값입니다.
windowKeywindow Key에 사용할 string 값입니다.

PopupMonitor.xaml.ViewModel.cs 파일의 173 번째 라인에서 정의되었습니다.

174 {
175 string state = _windowStateService.IsOpen(windowKey)
176 ? "OPEN"
177 : "CLOSED";
178
179 builder.AppendLine($"{windowKey} : {state}");
180 }

다음을 참조함 : _windowStateService.

다음에 의해서 참조됨 : RefreshSummary().

이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ OnWindowStateChanged()

void SampleSmart.Pages.WindowSub.PopupMonitorViewModel.OnWindowStateChanged ( object? sender,
WindowStateChangedEventArgs e )
inlineprivate

Window State Changed 이벤트 또는 상태 변경을 처리합니다.

매개변수
sender이벤트를 발생시킨 객체입니다.
e이벤트와 관련된 데이터를 포함합니다.

PopupMonitor.xaml.ViewModel.cs 파일의 124 번째 라인에서 정의되었습니다.

125 {
126 RefreshSummary();
127 }

다음을 참조함 : RefreshSummary().

다음에 의해서 참조됨 : PopupMonitorViewModel().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ Refresh()

partial void SampleSmart.Pages.WindowSub.PopupMonitorViewModel.Refresh ( )
private

상태 새로고침 동작을 실행합니다.

◆ RefreshSummary()

void SampleSmart.Pages.WindowSub.PopupMonitorViewModel.RefreshSummary ( )
inlineprivate

Refresh Summary 작업을 수행합니다.

PopupMonitor.xaml.ViewModel.cs 파일의 137 번째 라인에서 정의되었습니다.

138 {
139 StringBuilder builder = new();
140
141 AppendState(builder, ViewKeys.WindowSub);
142 AppendState(builder, ViewKeys.PopupNotice);
143 AppendState(builder, ViewKeys.PopupMonitor);
144 AppendState(builder, ViewKeys.PopupSetting);
145
146 WindowStateSummary = builder.ToString();
147 }

다음을 참조함 : AppendState(), SampleSmart.Constants.ViewKeys.PopupMonitor, SampleSmart.Constants.ViewKeys.PopupNotice, SampleSmart.Constants.ViewKeys.PopupSetting, SampleSmart.Constants.ViewKeys.WindowSub.

다음에 의해서 참조됨 : OnWindowStateChanged(), PopupMonitorViewModel().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
이 함수를 호출하는 함수들에 대한 그래프입니다.:

멤버 데이터 문서화

◆ _event

PopupMonitorEvent SampleSmart.Pages.WindowSub.PopupMonitorViewModel._event
private

event 값을 보관합니다.

PopupMonitor.xaml.ViewModel.cs 파일의 49 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : PopupMonitorViewModel().

◆ _model

PopupMonitorModel SampleSmart.Pages.WindowSub.PopupMonitorViewModel._model
private

model 값을 보관합니다.

PopupMonitor.xaml.ViewModel.cs 파일의 38 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : PopupMonitorViewModel().

◆ _windowStateService

readonly IWindowStateService SampleSmart.Pages.WindowSub.PopupMonitorViewModel._windowStateService
private

window State Service 값을 보관합니다.

PopupMonitor.xaml.ViewModel.cs 파일의 27 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : AppendState(), PopupMonitorViewModel().

◆ _windowStateSummary

string SampleSmart.Pages.WindowSub.PopupMonitorViewModel._windowStateSummary = string.Empty
private

창 상태 요약 문자열입니다.

PopupMonitor.xaml.ViewModel.cs 파일의 60 번째 라인에서 정의되었습니다.


이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.: