Esempio n. 1
0
        public void AddFlightDestinationPanel(JwLayout p)
        {
            if( ! ShouldCollectDestinationAirportCode() )
                return;

            Control flightNumberControl = (ShouldCollectFlightNumber() )
                ? MakeFlightNumberCB()
                : null;

            JwInputControlModel.ValidateDelegateType validateDelType =
                _inputControlManager.GetValidateComboBoxRequiredDelegate(
                    VmLanguage.Default.GetDestination(),
                    VmLanguage.Default.GetAirportCode());
            _destinationAirportSearchableComboBox = new VmSearchableComboBox(
                // kludge (err) - language
                "Destination Airport",
                _inputControlManager,
                3,
                60,
                4,
                DestinationAirportCodeChanged,
                validateDelType,
                flightNumberControl);

            p.Add(_destinationAirportSearchableComboBox);
        }
 public Control MakeSearchArea()
 {
     JwInputControlModel.ValidateDelegateType validateDelType =
         _inputControlManager.GetValidateComboBoxRequiredDelegate(
             VmLanguage.Default.GetDestination(),
             VmLanguage.Default.GetAirportCode());
     _destinationAirportSearchableComboBox = new VmSearchableComboBox(
         // kludge (err) - language
         "Destination Airport",
         _inputControlManager,
         1,
         60,
         4,
         null,
         validateDelType,
         null);
     return _destinationAirportSearchableComboBox;
 }
        public Control MakeOriginAirportControl()
        {
            JwInputControlModel.ValidateDelegateType validateDelType =
                _inputControlManager.GetValidateComboBoxRequiredDelegate(
                    // kludge (err) - language
                    "Origin",
                    VmLanguage.Default.GetAirportCode());
            _originAirportSearchableComboBox = new VmSearchableComboBox(
                // kludge (err) - language
                "Origin Airport",
                _inputControlManager,
                1,
                60,
                4,
                OriginAirportCodeChanged,
                validateDelType,
                null);

            return _originAirportSearchableComboBox;
        }
        public Control MakeCarrierCodeControl()
        {
            JwInputControlModel.ValidateDelegateType validateDelType =
                _inputControlManager.GetValidateComboBoxRequiredDelegate(
                    // kludge (err) - language
                    "Carrier",
                    "Code");
            _carrierCodeSearchableComboBox = new VmSearchableComboBox(
                // kludge (err) - language
                "Carrier Code",
                _inputControlManager,
                3,
                60,
                2,
                CarrierCodeChanged,
                validateDelType,
                null);

            return _carrierCodeSearchableComboBox;
        }