Interface IPostprocessingLogReceiver
The interface for a global object which receives logging messages that be shown to the user at the finish of postprocessing.
Namespace: SprutCAMTech.SCPostprocessor
Assembly: SprutCAMTech.SCPostprocessor.dll
Syntax
public interface IPostprocessingLogReceiver
Methods
AddMessage(LogMessageType, string)
Adds a message to the list of logging messages which will be shown to the user at the finish of postprocessing.
Declaration
void AddMessage(LogMessageType messageType, string msg)
Parameters
Type | Name | Description |
---|---|---|
LogMessageType | messageType | The type of message (info, warning or error). |
string | msg | The text of the message. |
MessageBox(string, string, MsgType, MsgBtnSet, MsgDefBtn)
Shows the standard message box window immediately.
Declaration
MsgClickedBtn MessageBox(string message, string caption, MsgType messageType, MsgBtnSet buttons, MsgDefBtn defaultButton)
Parameters
Type | Name | Description |
---|---|---|
string | message | The text of the message. |
string | caption | The header for the window. |
MsgType | messageType | The type of message (error, question, warning, info). |
MsgBtnSet | buttons | The set of buttons that should be shown in the window. |
MsgDefBtn | defaultButton | The button that should be default. |
Returns
Type | Description |
---|---|
MsgClickedBtn | Returns the type of button the user clicked. |