//# __________ PROTOCOL :: PRIVATE (NEST) __________ #// public override void InitializeScanNestEngine() { VmNeScanNestEngine engine = new VmNeScanNestEngine(); engine.LogoBitmap = LogoBitmap; engine.SpacerBitmap = SpacerBitmap; engine.ModuleBitmap = ModuleBitmap; engine.DoExitDelegate = delegate(VmPickerEngine pe) { VmApplication.Default.ShowMainPanel(); }; // kludge (err) - Language engine.Instructions = "Load Nest:"; VmLoadNestEventManager nm = new VmLoadNestEventManager( VmAirportData.Default.AirportOutputData.CreateLoadNestEventFile()); nm.Flight = Flight; engine.NestEventManager = nm; engine.DoneBitmap = VmImageManager.Default.GetHomeImage(); engine.DoneText = VmLanguage.Default.GetHome(); if( VmProperties.Default.ShouldAllowUnload() ) { engine.AlternateActionBitmap = VmImageManager.Default.GetUnloadImage(); engine.AlternateActionText = VmLanguage.Default.GetUnload(); engine.AlternateActionDelegate = delegate(VmPickerEngine pe) { UnloadNestEngine.ShowFirstPanel(); }; } _scanNestEngine = engine; }
//# __________ PROTOCOL :: MIXED __________ #// public override void InitializeScanMixedEngine() { VmScanMixedEngine engine = new VmScanMixedEngine(); engine.InitializeFromParentEngine(this); engine.DoExitDelegate = delegate(VmPickerEngine pe) { VmApplication.Default.ShowMainPanel(); }; engine.DoneBitmap = VmImageManager.Default.GetHomeImage(); engine.DoneText = VmLanguage.Default.GetHome(); // kludge (err) - Language engine.Instructions = "Load Items and Nests"; // Item Event Manager VmLoadItemManager im = new VmLoadItemManager( VmAirportData.Default.AirportOutputData.CreateLoadMixedForItemEventFile()); im.Flight = Flight; // Nest Event Manager VmLoadNestEventManager nm = new VmLoadNestEventManager( VmAirportData.Default.AirportOutputData.CreateLoadMixedForNestEventFile()); nm.Flight = Flight; // Alias Event Manager VmLoadAliasManager am = new VmLoadAliasManager( VmAirportData.Default.AirportOutputData.CreateLoadMixedForAliasEventFile()); am.Flight = Flight; // Mixed Event Manager engine.EventManager = new VmMixedEventManager( im, nm, am); _scanMixedEngine = engine; }