コード例 #1
0
        public void AddDateControl(JwLayout p)
        {
            _dateDT = VmUiBuilder.MakeDatePicker();
            //            _dateDT.ValueChanged += new EventHandler(DateTimeValueChanged);
            _inputControlManager.Add(_dateDT, 4);
            JwLabeledControl lc = VmUiBuilder.MakeLabeledControl(VmLanguage.Default.GetDate(), _dateDT);

            JwLabeledControl destinationAirportLc = VmUiBuilder.MakeLabeledComboBox("Airport", 65);
            _airportCodeCB = (JwComboBox)destinationAirportLc.Control;

            JwLeftRightLayout lr = new JwLeftRightLayout();
            lr.Gap = 5;
            if( VmProperties.Default.ShouldUseUldTemplateDate() )
            {
                lr.CenterControl = lc;
            }
            if( VmProperties.Default.ShouldUseUldTemplateAirport())
            {
                _inputControlManager.AddLabeledComboBox(
                    destinationAirportLc,
                    5,
                    "Destination Aiport",
                    "Code");
                lr.RightControl = destinationAirportLc;
            }

            p.Add(lr);
        }
コード例 #2
0
 public JwLayout MakeProfileChooser()
 {
     _profileCB = VmUiBuilder.MakeComboBox(0);
     JwLayout lc = VmUiBuilder.MakeLabeledControl(
         // kludge (err) - langauge
         "Airport Mode",
         _profileCB);
     JwVerticalLayout vp = new JwVerticalLayout();
     vp.ControlWidth.BeFill();
     vp.AlignMiddle();
     vp.Add(lc);
     return vp;
 }
コード例 #3
0
 public void AddDestinationCB(JwLayout p)
 {
     JwLabeledControl ic = VmUiBuilder.MakeLabeledComboBox(
         VmLanguage.Default.GetNestDestination(),
         VmLanguage.Default.GetOther(),
         OtherClicked);
     _nestAirportCodeCB = (JwComboBox)ic.Control;
     _inputControlManager.AddLabeledComboBox(
         ic,
         1,
         VmLanguage.Default.GetNest(),
         VmLanguage.Default.GetAirportCode());
     p.Add(ic);
 }
コード例 #4
0
 public Control MakeNestAirportCodeCB()
 {
     JwLabeledControl ic = VmUiBuilder.MakeLabeledComboBox(
         VmLanguage.Default.GetNestDestination(),
         VmLanguage.Default.GetOther(),
         OtherClicked);
     _nestAirportCodeCB = (JwComboBox)ic.Control;
     _inputControlManager.AddLabeledComboBox(
         ic,
         1,
         VmLanguage.Default.GetNest(),
         VmLanguage.Default.GetAirportCode());
     return ic;
 }
コード例 #5
0
        public Control MakeCarrierField()
        {
            _carrierCB = VmUiBuilder.MakeComboBox(0);
            /*
            JwLabel linkLabel = VmUiBuilder.MakeLinkedLabel(
                VmLanguage.Default.GetOther(),
                new EventHandler(OtherClicked));

            JwLabeledControl lc = VmUiBuilder.MakeLabeledControl(
                VmLanguage.Default.GetCarrier(),
                _carrierCB,
                linkLabel);
            */

            JwLabeledControl lc = VmUiBuilder.MakeLabeledControl(
                VmLanguage.Default.GetCarrier(),
                _carrierCB);
            _inputControlManager.AddLabeledComboBox(
                lc,
                1,
                VmLanguage.Default.GetCarrier(),
                VmLanguage.Default.GetCode());
            return lc;
        }
コード例 #6
0
 public Control MakeUldTypeCB()
 {
     _uldTypeCB = VmUiBuilder.MakeComboBox(65);
     // kludge (err) - language
     _inputControlManager.AddComboBox(
         _uldTypeCB,
         1,
         _uldTypeVisibilityWrapper,
         "ULD",
         "Type");
     return _uldTypeCB;
 }
コード例 #7
0
 public Control MakeUldOwnerCB()
 {
     // kludge (err) - language
     _uldOwnerCB = VmUiBuilder.MakeComboBox(65);
     _inputControlManager.AddComboBox(
         _uldOwnerCB,
         3,
         _uldOwnerVisibilityWrapper,
         "ULD",
         "Owner");
     return _uldOwnerCB;
 }
コード例 #8
0
 public Panel MakeFlightNumberField()
 {
     _flightNumberCB = VmUiBuilder.MakeComboBox(0);
     _flightNumberCB.DisplayMember = "DisplayFlightDepartureInfo";
     JwLabeledControl lc = VmUiBuilder.MakeLabeledControl(
         VmLanguage.Default.GetFlightNumber(),
         _flightNumberCB);
     _inputControlManager.AddLabeledComboBox(
         lc,
         2,
         VmLanguage.Default.GetFlight(),
         VmLanguage.Default.GetFlightNumber());
     return lc;
 }
コード例 #9
0
 public void AddComboBox(
     JwComboBox control,
     int tabOrderIndex,
     JwVisibilityWrapper visibilityWrapper,
     String modelName,
     String fieldName)
 {
     Add(
         control,
         tabOrderIndex,
         JwComboBox.GetValue,
         GetValidateComboBoxRequiredDelegate(modelName, fieldName),
         (JwPictureBox)visibilityWrapper.GetControl(),
         visibilityWrapper);
 }
コード例 #10
0
 public void AddComboBox(
     JwComboBox control,
     int tabOrderIndex,
     JwInputControlModel.ValidateDelegateType validateDelegate,
     JwVisibilityWrapper visibilityWrapper)
 {
     Add(
         control,
         tabOrderIndex,
         JwComboBox.GetValue,
         validateDelegate,
         (JwPictureBox)visibilityWrapper.GetControl(),
         visibilityWrapper);
 }
コード例 #11
0
        public Control MakeTruckNumberCB()
        {
            JwLabeledControl lc = VmUiBuilder.MakeLabeledComboBox(
                // kludge (Err) - language
                "Truck Number",
                0);
            _truckNumberCB = (JwComboBox)lc.Control;

            _inputControlManager.AddLabeledComboBox(
                lc,
                5,
                // kludge (ERR) - language
                "Truck",
                "Number",
                true);

            return lc;
        }
コード例 #12
0
ファイル: VmInUldInfoPanel.cs プロジェクト: pabplanalp/pvmail
 public Control MakeUldTypeCB()
 {
     _uldTypeCB = VmUiBuilder.MakeComboBox(65);
     _uldTypeCB.GotFocus += new EventHandler(SpecialScanningTextBoxGotFocus);
     _uldTypeCB.LostFocus += new EventHandler(SpecialScanningTextBoxLostFocus);
     // kludge (err) - language
     _inputControlManager.AddComboBox(
         _uldTypeCB,
         2,
         VmUldValidator.ValidateType,
         _uldTypeVisibilityWrapper);
     return _uldTypeCB;
 }
コード例 #13
0
ファイル: VmUiBuilder.cs プロジェクト: pabplanalp/pvmail
        public static JwComboBox MakeComboBox(int qvgaMinimumWidth)
        {
            JwComboBox cb = new JwComboBox();
            cb.Font = new System.Drawing.Font("Arial", FIELD_FONT_SIZE, System.Drawing.FontStyle.Bold);
            JwLabel l = VmUiUtility.MakeLabel(cb.Font, "XXX");
            //            cb.Size = new System.Drawing.Size(50, l.Height+45);

            if( qvgaMinimumWidth != 0 ) cb.MinimumWidth = VmUiUtility.ScaleToResolution(qvgaMinimumWidth);
            return cb;
        }
コード例 #14
0
        public Control MakeDestinationAirportCB()
        {
            _destinationAirportCodeCB = VmUiBuilder.MakeComboBox(60);
            _destinationAirportCodeCB.SelectedIndexChanged += new EventHandler(DestinationAirportCodeChanged);

            return _destinationAirportCodeCB;
        }
コード例 #15
0
 public void AddDestinationAirportCodeCB(JwLayout p)
 {
     JwLabeledControl lc = VmUiBuilder.MakeLabeledComboBox(
         VmLanguage.Default.GetDestination(),
         VmLanguage.Default.GetOther(),
         OtherClicked);
     p.Add(lc);
     _destinationAirportCodeCB = (JwComboBox)lc.Control;
     _inputControlManager.AddLabeledComboBox(
         lc,
         3,
         VmLanguage.Default.GetDestination(),
         VmLanguage.Default.GetAirportCode());
 }
コード例 #16
0
        public Control MakeFlightNumberCB()
        {
            _flightNumberCB = VmUiBuilder.MakeComboBox(0);
            JwLabeledControl lc = VmUiBuilder.MakeLabeledControl(VmLanguage.Default.GetFlightNumber(), _flightNumberCB);

            // kludge (err) - language
            _inputControlManager.AddLabeledComboBox(
                lc,
                5,
                "Cart",
                VmLanguage.Default.GetFlightNumber(),
                VmProperties.Default.IsCartFlightNumberRequired());
            return lc;
        }
コード例 #17
0
        public Control MakeValuesCB(int width)
        {
            _valuesCB = VmUiBuilder.MakeComboBox(width);
            if( ComboBoxChangedEventHandler != null ) _valuesCB.SelectedIndexChanged += new EventHandler(ComboBoxChangedEventHandler);

            return _valuesCB;
        }