C# Class RoboGO.MainWindowViewModel

ViewModel for the mainwindow.
显示文件 Open project: syre/SortingIndustrialRobot Class Usage Examples

Public Methods

Method Description
MainWindowViewModel ( System.Windows.Controls.ProgressBar _pb ) : System

Constructor with progressbar for showing connection status.

checkIsOnline ( ) : void

Check for being online.(The robot.)

setRobotAsRobotInstance ( ) : bool

Sets the curren robot as being the SCORBOT.

setSimulatorAsRobotInstance ( ) : void

Sets the current robot as being a simulator.

stopRobotInstance ( ) : void

Stops the robot from continuing any action.

Method Details

MainWindowViewModel() public method

Constructor with progressbar for showing connection status.
public MainWindowViewModel ( System.Windows.Controls.ProgressBar _pb ) : System
_pb System.Windows.Controls.ProgressBar Progressbar for showing connection status
return System

checkIsOnline() public method

Check for being online.(The robot.)
public checkIsOnline ( ) : void
return void

setRobotAsRobotInstance() public method

Sets the curren robot as being the SCORBOT.
public setRobotAsRobotInstance ( ) : bool
return bool

setSimulatorAsRobotInstance() public method

Sets the current robot as being a simulator.
public setSimulatorAsRobotInstance ( ) : void
return void

stopRobotInstance() public method

Stops the robot from continuing any action.
public stopRobotInstance ( ) : void
return void