private void SetVacationMode_callback(SetVacationMode_ReturnType returnData) { if (returnData.Success) { base.Close(); InterfaceMgr.Instance.openLogoutWindow(false); } else { MyMessageBox.Show(ErrorCodes.getErrorString(returnData.m_errorCode, returnData.m_errorID), SK.Text("VM_Error", "Vacation Error")); } }
public void OurRemoteAsyncCallBack_SetVacationMode(IAsyncResult ar) { RemoteAsyncDelegate_SetVacationMode asyncDelegate = (RemoteAsyncDelegate_SetVacationMode) ((AsyncResult) ar).AsyncDelegate; try { this.storeRPCresult(ar, asyncDelegate.EndInvoke(ar)); } catch (Exception exception) { SetVacationMode_ReturnType returnData = new SetVacationMode_ReturnType(); this.manageRemoteExpection(ar, returnData, exception); } }