DreamineVMS 1.0.0.0
Windows PC의 RTSP·USB 카메라 영상을 HLS로 변환해 원격 CCTV Viewer에 전달하는 데스크톱 에이전트입니다.
로딩중...
검색중...
일치하는것 없음
DreamineVMS.ViewModels.RelayCommand 클래스 참조sealed

더 자세히 ...

DreamineVMS.ViewModels.RelayCommand에 대한 상속 다이어그램 :
DreamineVMS.ViewModels.RelayCommand에 대한 협력 다이어그램:

Public 멤버 함수

 RelayCommand (Action execute, Func< bool >? canExecute=null)
bool CanExecute (object? parameter)
void Execute (object? parameter)
void RaiseCanExecuteChanged ()

이벤트

EventHandler? CanExecuteChanged

Private 속성

readonly Action _execute
readonly? Func< bool > _canExecute

상세한 설명

동기 ICommand 구현입니다.

MainWindowViewModel.cs 파일의 811 번째 라인에서 정의되었습니다.

생성자 & 소멸자 문서화

◆ RelayCommand()

DreamineVMS.ViewModels.RelayCommand.RelayCommand ( Action execute,
Func< bool >? canExecute = null )
inline

RelayCommand 클래스의 새 인스턴스를 초기화합니다.

매개변수
execute실행할 동작입니다.
canExecute실행 가능 여부를 반환하는 조건입니다.
예외
ArgumentNullException필수 입력 인자 중 하나가 null인 경우 발생합니다.

MainWindowViewModel.cs 파일의 864 번째 라인에서 정의되었습니다.

865 {
866 _execute = execute ?? throw new ArgumentNullException(nameof(execute));
867 _canExecute = canExecute;
868 }

다음을 참조함 : _canExecute, _execute.

멤버 함수 문서화

◆ CanExecute()

bool DreamineVMS.ViewModels.RelayCommand.CanExecute ( object? parameter)
inline

Can Execute 조건을 확인합니다.

매개변수
parameterparameter에 사용할 object? 값입니다.
반환값
Can Execute 조건이 충족되면 true이고, 그렇지 않으면 false입니다.

MainWindowViewModel.cs 파일의 904 번째 라인에서 정의되었습니다.

904=> _canExecute?.Invoke() ?? true;

다음을 참조함 : _canExecute.

◆ Execute()

void DreamineVMS.ViewModels.RelayCommand.Execute ( object? parameter)
inline

Execute 작업을 수행합니다.

매개변수
parameterparameter에 사용할 object? 값입니다.

MainWindowViewModel.cs 파일의 922 번째 라인에서 정의되었습니다.

922=> _execute();

◆ RaiseCanExecuteChanged()

void DreamineVMS.ViewModels.RelayCommand.RaiseCanExecuteChanged ( )
inline

CanExecuteChanged 이벤트를 UI Dispatcher에서 발생시킵니다.

MainWindowViewModel.cs 파일의 932 번째 라인에서 정의되었습니다.

933 {
934 System.Windows.Threading.Dispatcher? dispatcher =
935 System.Windows.Application.Current?.Dispatcher;
936
937 if (dispatcher is null || dispatcher.CheckAccess())
938 {
939 CanExecuteChanged?.Invoke(this, EventArgs.Empty);
940 return;
941 }
942
943 dispatcher.InvokeAsync(() => CanExecuteChanged?.Invoke(this, EventArgs.Empty));
944 }

다음을 참조함 : CanExecuteChanged.

멤버 데이터 문서화

◆ _canExecute

readonly? Func<bool> DreamineVMS.ViewModels.RelayCommand._canExecute
private

can Execute 값을 보관합니다.

MainWindowViewModel.cs 파일의 830 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : CanExecute(), RelayCommand().

◆ _execute

readonly Action DreamineVMS.ViewModels.RelayCommand._execute
private

execute 값을 보관합니다.

MainWindowViewModel.cs 파일의 821 번째 라인에서 정의되었습니다.

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

이벤트 문서화

◆ CanExecuteChanged

EventHandler? DreamineVMS.ViewModels.RelayCommand.CanExecuteChanged

Can Execute Changed 상황이 발생할 때 알립니다.

MainWindowViewModel.cs 파일의 878 번째 라인에서 정의되었습니다.

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


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