public VmNeScanNestEngine GetScanNestEngine()
 {
     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 = "Scan Nest to Empty:";
     VmEmptyNestEventManager nm = new VmEmptyNestEventManager();
     nm.EventFile = VmAirportData.Default.AirportOutputData.GetEmptyNestEventFile(
         VmAirportData.Default.AirportOutputData.IdentityFile.GetNextIdentity());
     engine.NestEventManager = nm;
     engine.DoneBitmap = VmImageManager.Default.GetHomeImage();
     engine.DoneText = VmLanguage.Default.GetHome();
     return engine;
 }
Exemple #2
0
        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 = "Hand Over Nest:";
            VmGiveNestEventManager nm = new VmGiveNestEventManager(
                VmAirportData.Default.AirportOutputData.CreateGiveNestEventFile());

            nm.CarrierCode = CarrierCode;
            engine.NestEventManager = nm;
            engine.DoneBitmap = VmImageManager.Default.GetHomeImage();
            engine.DoneText = VmLanguage.Default.GetHome();
            ScanNestEngine = engine;
        }
Exemple #3
0
 public void InitializeUnloadNestEngine()
 {
     VmNeScanNestEngine e = new VmNeScanNestEngine();
     VmUnloadNestEventManager manager = new VmUnloadNestEventManager();
     manager.EventFile = VmAirportData.Default.AirportOutputData.GetUnloadNestEventFile(
         VmAirportData.Default.AirportOutputData.IdentityFile.GetNextIdentity());
     manager.Flight = Flight;
     e.NestEventManager = manager;
     e.LogoBitmap = LogoBitmap;
     e.SpacerBitmap = SpacerBitmap;
     e.ModuleBitmap = ModuleBitmap;
     e.DoExitDelegate =
         delegate(VmPickerEngine pe)
         {
             ScanNestEngine.ShowFirstPanel();
         };
     // kludge (err) - Language
     e.Instructions = "Unload Nest:";
     e.DoneBitmap = VmImageManager.Default.GetLoadModuleImage();
     e.DoneText = VmLanguage.Default.GetLoad();
     _unloadNestEngine = e;
 }
Exemple #4
0
        //# __________ 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;
        }
Exemple #5
0
        public override void InitializeScanNestEngine()
        {
            VmNeScanNestEngine engine = new VmNeScanNestEngine();
            IntializeDeliverWithCommonDone(engine);

            // kludge (err) - Language
            engine.Instructions = "Deliver Nest";
            VmDeliverNestEventManager nm = new VmDeliverNestEventManager(
                VmAirportData.Default.AirportOutputData.CreateDeliverNestEventFile());
            engine.NestEventManager = nm;

            _scanNestEngine = engine;
        }