C# 클래스 SerialComm.ViewModel.SerialCommViewModel

상속: ViewModelBase
파일 보기 프로젝트 열기: heiswayi/SerialComm 1 사용 예제들

공개 메소드들

메소드 설명
OnWindowClosing ( object sender, CancelEventArgs e ) : void

Close port if port is open when user closes MainWindow.

SerialCommViewModel ( ) : System

비공개 메소드들

메소드 설명
ChangeFileLocationMethod ( ) : void
DataReceivedEvent ( object sender, System.IO.Ports.SerialDataReceivedEventArgs e ) : void

Receive data event from serial port.

ExportFileCanExecute ( ) : bool
ExportFileMethod ( ) : void
GetConnectionStatus ( ) : string

Get connection/communication status.

RefreshPortsMethod ( ) : void

Rescan avaiable ports

StartListening ( ) : void

Initiate serial port communication.

StartListeningCanExecute ( ) : bool

Allow/disallow StartListening() to be executed.

StartTimer ( int duration ) : void
StopListening ( ) : void

Terminate serial port communication.

TimerTick ( object send, EventArgs e ) : void
WriteData ( ) : void

Send data to serial port.

메소드 상세

OnWindowClosing() 공개 메소드

Close port if port is open when user closes MainWindow.
public OnWindowClosing ( object sender, CancelEventArgs e ) : void
sender object
e CancelEventArgs
리턴 void

SerialCommViewModel() 공개 메소드

public SerialCommViewModel ( ) : System
리턴 System