An interface for callback objects which can be used to return information about progress and errors. More...
Public Member Functions | |
| void | Error (string KeyOfSender, string ErrorMsg) |
| A function to report the information about an error. | |
| void | Progress (string KeyOfSender, int Percent, string Message) |
| A function to report the information about progress of the task. | |
An interface for callback objects which can be used to return information about progress and errors.
Here is an example which demonstrates the usage of Callback.
public void Test() { Shapefile sf = new Shapefile(); sf.GlobalCallback = new Callback(); } class Callback : ICallback { public void Error(string KeyOfSender, string ErrorMsg) { Debug.Print("Error reported: " + ErrorMsg); } public void Progress(string KeyOfSender, int Percent, string Message) { Debug.Print(Message + ": " + Percent + "%"); } }
| void ICallback.Error | ( | string | KeyOfSender, |
| string | ErrorMsg | ||
| ) |
A function to report the information about an error.
| KeyOfSender | The key associated with the object in which error took place. |
| ErrorMsg | The description of the error. |
| void ICallback.Progress | ( | string | KeyOfSender, |
| int | Percent, | ||
| string | Message | ||
| ) |
A function to report the information about progress of the task.
| KeyOfSender | The key associated with the object in which error took place. |
| Percent | The percent of completion (from 0 to 100). |
| Message | The information about the task being executed. |
1.7.6.1