Full Version : RaiseSwitch&xmlspawner
xmlspawner >>Q&A >>RaiseSwitch&xmlspawner
<< Prev | Next >>
aph- 08-14-2006
ok.. is there a way how can I active the raiseswitch throught xmlspawner?
ArteGordon- 08-14-2006
you would need to add something like this to the RaiseSwitch class in RaiseSwitch.cs

CODE
// ARTEGORDONMOD // allow the switch to be activated by setting the DoRaise property to true public bool DoRaise { set
{
if (value == true)
{
Flip();
if (RaisableItem != null && !RaisableItem.Deleted && RaisableItem.IsRaisable)
{
RaisableItem.Raise();
}
}
}
}

and then you could activate it by just setting the DoRaise property to true on the target switch.
aph- 08-14-2006
that is exactl what i needed, thanks