Beispiel #1
0
        private void InitializeRpu2()
        {
            RpuDataCom     rpudatacom2     = new RpuDataCom(datacomFlash2, datacomOn2, datacomOff2);
            RpuMaintenance rpumaintenance2 = new RpuMaintenance(maintFlash2, maintOn2, maintOff2);
            RpuStatus      rpustatus2      = new RpuStatus(statusAlarm2, statusWarning2, statusNormal2, statusOff2);
            RpuBuzzer      rpubuzzer2      = new RpuBuzzer(buzzerEnable2, buzzerDisable2);
            RpuBinding     rpubinding2     = new RpuBinding(rpubuzzer2, rpudatacom2, rpumaintenance2, rpustatus2, rpu2, Program.airportConfig.Navaid[1]);

            Program.airportBinding._RpuBinding.Add(rpubinding2);
        }
Beispiel #2
0
        private void InitializeRpu3()
        {
            RpuDataCom     rpudatacom3     = new RpuDataCom(datacomFlash3, datacomOn3, datacomOff3);
            RpuMaintenance rpumaintenance3 = new RpuMaintenance(maintFlash3, maintOn3, maintOff3);
            RpuStatus      rpustatus3      = new RpuStatus(statusAlarm3, statusWarning3, statusNormal3, statusOff3);
            RpuBuzzer      rpubuzzer3      = new RpuBuzzer(buzzerEnable3, buzzerDisable3);
            RpuBinding     rpubinding3     = new RpuBinding(rpubuzzer3, rpudatacom3, rpumaintenance3, rpustatus3, rpu3, Program.airportConfig.Navaid[2]);

            Program.airportBinding._RpuBinding.Add(rpubinding3);
        }
Beispiel #3
0
        private void InitializeRpu8()
        {
            RpuDataCom     rpudatacom8     = new RpuDataCom(datacomFlash8, datacomOn8, datacomOff8);
            RpuMaintenance rpumaintenance8 = new RpuMaintenance(maintFlash8, maintOn8, maintOff8);
            RpuStatus      rpustatus8      = new RpuStatus(statusAlarm8, statusWarning8, statusNormal8, statusOff8);
            RpuBuzzer      rpubuzzer8      = new RpuBuzzer(buzzerEnable8, buzzerDisable8);
            RpuBinding     rpubinding8     = new RpuBinding(rpubuzzer8, rpudatacom8, rpumaintenance8, rpustatus8, rpu8, Program.airportConfig.Navaid[7]);

            Program.airportBinding._RpuBinding.Add(rpubinding8);
        }
Beispiel #4
0
        private void InitializeRpu1()
        {
            RpuDataCom     rpudatacom1     = new RpuDataCom(datacomFlash1, datacomOn1, datacomOff1);
            RpuMaintenance rpumaintenance1 = new RpuMaintenance(maintFlash1, maintOn1, maintOff1);
            RpuStatus      rpustatus1      = new RpuStatus(statusAlarm1, statusWarning1, statusNormal1, statusOff1);
            RpuBuzzer      rpubuzzer1      = new RpuBuzzer(buzzerEnable1, buzzerDisable1);
            RpuBinding     rpubinding1     = new RpuBinding(rpubuzzer1, rpudatacom1, rpumaintenance1, rpustatus1, rpu1, Program.airportConfig.Navaid[0]);

            Program.airportBinding._RpuBinding.Add(rpubinding1);
        }
Beispiel #5
0
        private void InitializeRpu7()
        {
            RpuDataCom     rpudatacom7     = new RpuDataCom(datacomFlash7, datacomOn7, datacomOff7);
            RpuMaintenance rpumaintenance7 = new RpuMaintenance(maintFlash7, maintOn7, maintOff7);
            RpuStatus      rpustatus7      = new RpuStatus(statusAlarm7, statusWarning7, statusNormal7, statusOff7);
            RpuBuzzer      rpubuzzer7      = new RpuBuzzer(buzzerEnable7, buzzerDisable7);
            RpuBinding     rpubinding7     = new RpuBinding(rpubuzzer7, rpudatacom7, rpumaintenance7, rpustatus7, rpu7, Program.airportConfig.Navaid[6]);

            Program.airportBinding._RpuBinding.Add(rpubinding7);
        }
Beispiel #6
0
        private void InitializeRpu6()
        {
            RpuDataCom     rpudatacom6     = new RpuDataCom(datacomFlash6, datacomOn6, datacomOff6);
            RpuMaintenance rpumaintenance6 = new RpuMaintenance(maintFlash6, maintOn6, maintOff6);
            RpuStatus      rpustatus6      = new RpuStatus(statusAlarm6, statusWarning6, statusNormal6, statusOff6);
            RpuBuzzer      rpubuzzer6      = new RpuBuzzer(buzzerEnable6, buzzerDisable6);
            RpuBinding     rpubinding6     = new RpuBinding(rpubuzzer6, rpudatacom6, rpumaintenance6, rpustatus6, rpu6, Program.airportConfig.Navaid[5]);

            Program.airportBinding._RpuBinding.Add(rpubinding6);
        }
Beispiel #7
0
        private void InitializeRpu5()
        {
            RpuDataCom     rpudatacom5     = new RpuDataCom(datacomFlash5, datacomOn5, datacomOff5);
            RpuMaintenance rpumaintenance5 = new RpuMaintenance(maintFlash5, maintOn5, maintOff5);
            RpuStatus      rpustatus5      = new RpuStatus(statusAlarm5, statusWarning5, statusNormal5, statusOff5);
            RpuBuzzer      rpubuzzer5      = new RpuBuzzer(buzzerEnable5, buzzerDisable5);
            RpuBinding     rpubinding5     = new RpuBinding(rpubuzzer5, rpudatacom5, rpumaintenance5, rpustatus5, rpu5, Program.airportConfig.Navaid[4]);

            Program.airportBinding._RpuBinding.Add(rpubinding5);
        }
Beispiel #8
0
        private void InitializeRpu4()
        {
            RpuDataCom     rpudatacom4     = new RpuDataCom(datacomFlash4, datacomOn4, datacomOff4);
            RpuMaintenance rpumaintenance4 = new RpuMaintenance(maintFlash4, maintOn4, maintOff4);
            RpuStatus      rpustatus4      = new RpuStatus(statusAlarm4, statusWarning4, statusNormal4, statusOff4);
            RpuBuzzer      rpubuzzer4      = new RpuBuzzer(buzzerEnable4, buzzerDisable4);
            RpuBinding     rpubinding4     = new RpuBinding(rpubuzzer4, rpudatacom4, rpumaintenance4, rpustatus4, rpu4, Program.airportConfig.Navaid[3]);

            Program.airportBinding._RpuBinding.Add(rpubinding4);
        }
Beispiel #9
0
        public RpuBinding(RpuBuzzer rpubuzzer, RpuDataCom rpudatacom, RpuMaintenance rpumaintenance, RpuStatus rpustatus, GroupBox rpubox, Navaid navaid)
        {
            _RpuBuzzer      = rpubuzzer;
            _RpuDataCom     = rpudatacom;
            _RpuMaintenance = rpumaintenance;
            _RpuStatus      = rpustatus;
            _RpuBox         = rpubox;
            _Navaid         = navaid;

            rpubox.Text = rpubox.Text + " " + navaid.Name;

            if (_Navaid.Enable)
            {
                rpubox.Enabled = true;
            }
            else
            {
                rpubox.Enabled = false;
            }
        }