//# __________ 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; }
//# __________ PROTOCOL :: PRIVATE (ITEM) __________ #// public override void InitializeScanItemEngine() { VmIeScanItemEngine engine = new VmIeScanItemEngine(); engine.LogoBitmap = LogoBitmap; engine.SpacerBitmap = SpacerBitmap; engine.ModuleBitmap = ModuleBitmap; engine.DoExitDelegate = delegate(VmPickerEngine pe) { VmApplication.Default.ShowMainPanel(); }; // kludge (err) - Language engine.Instructions = "Load Item:"; VmLoadItemManager im = new VmLoadItemManager( VmAirportData.Default.AirportOutputData.CreateLoadItemEventFile()); VmLoadAliasManager am = new VmLoadAliasManager( VmAirportData.Default.AirportOutputData.CreateLoadAliasEventFile()); engine.AssignEventMangers( im, am); im.Flight = Flight; am.Flight = Flight; 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) { UnloadItemEngine.ShowFirstPanel(); }; } engine.BuildNestFlag = false; _scanItemEngine = engine; }