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); }
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; }
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); }
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; }
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; }
public Control MakeUldTypeCB() { _uldTypeCB = VmUiBuilder.MakeComboBox(65); // kludge (err) - language _inputControlManager.AddComboBox( _uldTypeCB, 1, _uldTypeVisibilityWrapper, "ULD", "Type"); return _uldTypeCB; }
public Control MakeUldOwnerCB() { // kludge (err) - language _uldOwnerCB = VmUiBuilder.MakeComboBox(65); _inputControlManager.AddComboBox( _uldOwnerCB, 3, _uldOwnerVisibilityWrapper, "ULD", "Owner"); return _uldOwnerCB; }
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; }
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); }
public void AddComboBox( JwComboBox control, int tabOrderIndex, JwInputControlModel.ValidateDelegateType validateDelegate, JwVisibilityWrapper visibilityWrapper) { Add( control, tabOrderIndex, JwComboBox.GetValue, validateDelegate, (JwPictureBox)visibilityWrapper.GetControl(), visibilityWrapper); }
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; }
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; }
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; }
public Control MakeDestinationAirportCB() { _destinationAirportCodeCB = VmUiBuilder.MakeComboBox(60); _destinationAirportCodeCB.SelectedIndexChanged += new EventHandler(DestinationAirportCodeChanged); return _destinationAirportCodeCB; }
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()); }
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; }
public Control MakeValuesCB(int width) { _valuesCB = VmUiBuilder.MakeComboBox(width); if( ComboBoxChangedEventHandler != null ) _valuesCB.SelectedIndexChanged += new EventHandler(ComboBoxChangedEventHandler); return _valuesCB; }