public void InitializeFlightNestInfoEngine() { VmInFlightNestInfoEngine e = new VmInFlightNestInfoEngine(); e.InitializeFromParentEngine(this); e.DoExitDelegate = delegate(VmPickerEngine pe) { VmInFlightNestInfoEngine engine = (VmInFlightNestInfoEngine)pe; VmFlightNest c = engine.FlightNest; Nest = VmNestManager.Default.UpdateFlight( c.Flight.Id, c.Note, LocationCode); DoExitEvent(); }; e.Flight = Flight; _flightNestInfoEngine = e; }
public void InitializeFlightNestInfoEngine() { VmInFlightNestInfoEngine e = new VmInFlightNestInfoEngine(); e.InitializeFromParentEngine(this); e.DoExitDelegate = delegate(VmPickerEngine pe) { VmInFlightNestInfoEngine engine = (VmInFlightNestInfoEngine)pe; VmFlightNest c = engine.FlightNest; DoCommonExit(c); }; _flightNestInfoEngine = e; }