static Local() { NativeFunctions = (ObjectArrayNative *)Interfaces.Get(Core.Name.Make("PointerArray")).ToPointer(); Debug.Assert(NativeFunctions != null); NativeFunctions->Validate(); Add = Marshal.GetDelegateForFunctionPointer <AddDelegate>(NativeFunctions->Add); RemoveAt = Marshal.GetDelegateForFunctionPointer <RemoveAtDelegate>(NativeFunctions->RemoveAt); Insert = Marshal.GetDelegateForFunctionPointer <InsertDelegate>(NativeFunctions->Insert); Reserve = Marshal.GetDelegateForFunctionPointer <ReserveDelegate>(NativeFunctions->Reserve); }
/* Starts the ticket reserving thread * * This is the function the detailed window has to call. * It starts the thread reserving tickets and returns, * so that the operation is asynchronous. */ public void ReserveTicket(String flightid, String passenger, String airline) { ReserveDelegate reserver = new ReserveDelegate(this.ThreadTicketReserve); reserver.BeginInvoke(flightid, passenger, airline, null, null); }