I have a method Modify which doing a operation ClientModify inside
public bool Modify()
{
bool retval = false;
retval = Spa.ClientModify(col);
}
Here what i wanted is the ClientModify should perform only after three events completed in the eventhandler "ServerEvents" otherwise it should return retval as false .How can i do that checks before doing the operation "Spa.ClientModify"
static private void ServerEvents(eventType type, event this_event, object passback)
{
if (this_event.type == eventType.SPD_spurtEvent)
{
if (this_event.objectName == "ready")
{
// some operation
}
else if (this_event.objectName == "info")
{
// some operation
}
else if (this_event.objectName == "serverstate")
{
// some operation
}
}
}
Some how i added a variable bool Yes= false in the eventhandler "ServerEvents" and once this check completed else if (this_event.objectName == "serverstate") i made it as yes=true,,But here the problem i am facing is i cant able to get yes boolean variable inside Modify() method ,i will get ServerEvents,but not able to instantiate.How can i do this or is there any other mechanism for that