C# Class SerialComm.ViewModel.SerialCommViewModel

Inheritance: ViewModelBase
Exibir arquivo Open project: heiswayi/SerialComm Class Usage Examples

Public Methods

Method Description
OnWindowClosing ( object sender, CancelEventArgs e ) : void

Close port if port is open when user closes MainWindow.

SerialCommViewModel ( ) : System

Private Methods

Method Description
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.

Method Details

OnWindowClosing() public method

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

SerialCommViewModel() public method

public SerialCommViewModel ( ) : System
return System