public void HandleFlightSelection() { // kludge (err) - ran out of time. violating the abstraction to handle the specialized event here. will factor // upon second example of a mobile flight event. VmArrivingFlight f = ArrivingFlightEngine.Flight; VmDeliverFlightEvent v = new VmDeliverFlightEvent(); v.Id = 1; v.ArrivingFlightId = f.Id; v.EventTimestamp = JwTimestamp.CreateNowUtc(); v.UserName = VmAccountData.Default.User.UserName; VmDeliverFlightEventManager m = new VmDeliverFlightEventManager(); m.Write(v); DoExitEvent(); }
//# __________ PROTOCOL :: VARIABLES __________ #// public void Write(VmDeliverFlightEvent v) { VmDeliverFlightEventFile f = VmAirportData.Default.AirportOutputData.CreateDeliverFlightEventFile(); f.Append(v); ValuePersisted(); }