コード例 #1
0
ファイル: VmHndGiveEngine.cs プロジェクト: pabplanalp/pvmail
        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 = "Handover Items and Nests";

            // Item Event Manager
            VmGiveItemEventManager im = new VmGiveItemEventManager(
                VmAirportData.Default.AirportOutputData.CreateGiveItemForMixedEventFile());
            im.CarrierCode = CarrierCode;

            // Nest Event Manager
            VmGiveNestEventManager nm = new VmGiveNestEventManager(
                VmAirportData.Default.AirportOutputData.CreateGiveNestForMixedEventFile());
            nm.CarrierCode = CarrierCode;

            // Alias Event Manager
            VmGiveAliasEventManager am = new VmGiveAliasEventManager(
                VmAirportData.Default.AirportOutputData.CreateGiveAliasForMixedEventFile());
            am.CarrierCode = CarrierCode;

            // Mixed Event Manager
            engine.EventManager = new VmMixedEventManager(
                im,
                nm,
                am);

            _scanMixedEngine = engine;
        }
コード例 #2
0
ファイル: VmDeliverEngine.cs プロジェクト: pabplanalp/pvmail
        public override void InitializeScanMixedEngine()
        {
            VmScanMixedEngine engine = new VmScanMixedEngine();
            IntializeDeliverWithCommonDone(engine);

            // kludge (err) - Language
            engine.Instructions = "Deliver Items and Nests:";

            // Item Event Manager
            VmDeliverItemManager im = new VmDeliverItemManager(
                VmAirportData.Default.AirportOutputData.CreateDeliverItemForMixedEventFile());

            // Nest Event Manager
            VmDeliverNestEventManager nm = new VmDeliverNestEventManager(
                VmAirportData.Default.AirportOutputData.CreateDeliverNestForMixedEventFile());

            // Alias Event Manager
            VmDeliverAliasManager am = new VmDeliverAliasManager(
                VmAirportData.Default.AirportOutputData.CreateDeliverAliasForMixedEventFile());

            // Mixed Event Manager
            engine.EventManager = new VmMixedEventManager(
                im,
                nm,
                am);

            _scanMixedEngine = engine;
        }