RobotStudio event

BackupEventHandler

Options

Hi!

I tried to use the event for a complete backup, but I'm a little uncertan how to use the right types:


this
.controllers.BackupCompleted += new BackupEventHandler(c_BackupCompleted);

And here is the event handler....


public void c_BackupCompleted(object sender,ABB.Robotics.Controllers.BackupEventArgs e)
{
}
This sollution gives me the compiler error:
 "Error 2 Cannot implicitly convert type 'ABB.Robotics.Controllers.BackupEventHandler' to 'System.EventHandler<ABB.Robotics.Controllers.BackupEvent Args>
// Bj?rn
<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> 

 

Comments

  • RussD
    Options

    BackupEventHandler (and all other controller event handlers) are obsoleted in 5.09 because they have made a change to how these events are fired. You must implement your own method instead of using the built-in ones. See the 5.09 release notes for more information.

    Russell Drown
  • Obviously I did not read the documentation good enough, anyway now it works as it should - thanks!

    // Bj?rn<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />