/// <summary> /// Handler called when a particular action on the window is performed /// </summary> /// <param name="onAction">The action to be performed</param> void OnWindowSimulationActionHandler(WindowSimulationSettings.OnAction onAction) { if (onAction.action == WindowSimulationSettings.OnActionActions.ACTION_BUTTONCLICKED_APPLY) { // Prepare a request to delete the new multicopter var delRequest = new DeleteSimulationEntity(_multicopterEntity); // Activate success / failure handlers Activate( Arbiter.Choice <DefaultDeleteResponseType, W3C.Soap.Fault>( delRequest.ResponsePort, // Remove was a success delegate(DefaultDeleteResponseType t) { // Create new multicopter based on selection SimulatorAddMulticopterEntity(onAction.multicopterType, onAction.propellerInclination); }, // Remove failed delegate(W3C.Soap.Fault f) { throw new NotImplementedException(); } ) ); // Remove the old multicopter SimulationEngine.GlobalInstancePort.Post(delRequest); } }
void DeleteEntityNotificationHandler(DeleteSimulationEntity del) { _entity = null; }
void DeleteEntityNotificationHandler(DeleteSimulationEntity del) { _observer = null; }
private void DeleteEntityNotificationHandler(DeleteSimulationEntity parameter0) { _robotArm = null; }