// This method handles PropertyStatus events that occur while loading
// configuration to object.
public void OnSavePropertyStatus(Mpx.ConfigSaver saver,
Mpx.ConfigSavePropertyStatusEventArgs e)
{
string msg;
// Print the current property and the percentage done
// Example output:
// 25%: Controller.Axis[2].AmpDisableAction
// skipped
msg = e.PercentageDone
+ "%: "
+ e.PropertyPath
+ "\n";
System.Console.Write(msg);
// Don't save CAN or CAN Node objects
if (e.PropertyPath.StartsWith("Controller.Can"))
{
System.Console.Write(" skipped\n");
e.SkipProperty = true;
}
}
|