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 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); }
//# __________ PROTOCOL :: MAKE (INPUT AREA) __________ #// public void AddFlightLabel(JwLayout p) { JwVerticalLayout v = new JwVerticalLayout(); v.Gap = 1; v.ControlWidth.BeFill(); JwLabeledControl lc; lc = VmUiBuilder.MakeLabeledValueLabel( VmLanguage.Default.GetFlight(), VmLanguage.Default.GetChange(), ChangeClicked); v.Add(lc); _flightNumberLabel = (JwLabel)lc.Control; // kludge (err) - language lc = VmUiBuilder.MakeLabeledValueLabel("Departure Date"); v.Add(lc); _departureDateLabel = (JwLabel)lc.Control; lc = VmUiBuilder.MakeLabeledValueLabel("Destination Airport"); v.Add(lc); _destinationLabel = (JwLabel)lc.Control; p.Add(v); }
public void AddFlightLabel(JwLayout p) { JwLabeledControl lc = VmUiBuilder.MakeLabeledValueLabel( VmLanguage.Default.GetFlight(), VmLanguage.Default.GetChange(), ChangeClicked); _flightLabel = (JwLabel)lc.Control; p.Add(lc); }
public void AddUldType(JwLayout p) { //kludge (err) - language JwLabeledControl lc = VmUiBuilder.MakeLabeledTextBox("ULD Type"); _uldTypeTB = (JwTextBox)lc.Control; _inputControlManager.AddLabeledTextBox( lc, 1); p.Add(lc); }
public void AddUldOwner(JwLayout p) { //kludge (err) - language JwLabeledControl lc = VmUiBuilder.MakeLabeledTextBox("ULD Owner"); _uldOwnerTB = (JwTextBox)lc.Control; _inputControlManager.AddLabeledTextBox( lc, 3, VmUldValidator.ValidateOwner); p.Add(lc); }
public void AddUserNameTB(JwLayout p) { // kludge (err) - language JwLabeledControl lc = VmUiBuilder.MakeLabeledTextBox(VmLanguage.Default.GetUserName(), "Update Device", RemoteLogin); p.Add(lc); _userNameTB = (JwTextBox)lc.Control; _inputControlManager.AddLabeledTextBox( lc, 0, VmUserValidator.ValidateUserName); }
public static void AddButton( JwLayout p, Bitmap bitmap, String text, EventHandler eventHandler) { Panel button = MakePictureButton( bitmap, text, new System.EventHandler(eventHandler)); p.Add(button); }
public void AddUldControl(JwLayout p) { _uldTypeVisibilityWrapper = VmUiBuilder.MakeVisibilityWrappedValidationErrorPictureBox(); _uldNumberVisibilityWrapper = VmUiBuilder.MakeVisibilityWrappedValidationErrorPictureBox(); _uldOwnerVisibilityWrapper = VmUiBuilder.MakeVisibilityWrappedValidationErrorPictureBox(); JwVerticalLayout v = new JwVerticalLayout(); v.Gap = 0; v.ControlWidth.BeFill(); v.Add(MakeUldLabel()); v.Add(MakeUldWidgets()); p.Add(v); }
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 JwLabel AddNestBox( JwLayout layout, String labelName, EventHandler ev) { JwLeftRightLayout lr = new JwLeftRightLayout(); lr.LeftControl = VmUiBuilder.MakeFieldLabel(labelName); // kludge (err) - language lr.RightControl = VmUiBuilder.MakeLinkedLabel("Change", ev); JwLabel valueLabel = VmUiBuilder.MakeSmallValueLabel(""); JwVerticalLayout p = new JwVerticalLayout(); p.Gap = 1; p.ControlWidth.BeFill(); p.Add(lr); p.Add(valueLabel); layout.Add(p); return valueLabel; }
public void AddFlightDestinationPanel(JwLayout p) { if( ! ShouldCollectDestinationAirportCode() ) return; JwLeftRightLayout lr = new JwLeftRightLayout(); lr.Gap = 5; Control area = MakeDestinationAirportArea(); JwLabeledControl lc = VmUiBuilder.MakeLabeledControl( // kludge (err) - language "Destination Airport", area); lr.CenterControl = lc; JwInputControlModel.ValidateDelegateType validateDelType = _inputControlManager.GetValidateComboBoxRequiredDelegate( VmLanguage.Default.GetDestination(), VmLanguage.Default.GetAirportCode()); _inputControlManager.Add( _destinationAirportCodeCB, 3, JwComboBox.GetValue, validateDelType, lc.PictureBox, lc.VisiblityWrapper); _inputControlManager.Add( _destinationAirportCodeTB, 4); if( ShouldCollectFlightNumber() ) lr.RightControl = MakeFlightNumberCB(); p.Add(lr); }
public JwLabel AddLabeledLabelControl(JwLayout p, String text) { Font keyFont = new System.Drawing.Font("Arial", 10, System.Drawing.FontStyle.Regular); Font valueFont = new System.Drawing.Font("Arial", 10, System.Drawing.FontStyle.Bold); JwLabeledControl lc = VmUiBuilder.MakeLabeledValueLabel(text); p.Add(lc); lc.Label.Font = keyFont; JwLabel valueLabel = (JwLabel)lc.Control; valueLabel.Font = valueFont; return valueLabel; }
//# __________ PROTOCOL :: ADDING TO PANEL __________ #// public static JwLabeledControl AddTextBoxField(JwLayout p, String value) { JwLabeledControl lc = MakeLabeledTextBox(value); p.Add(lc); return lc; }
public void AddFlightControl(JwLayout p) { JwHorizontalLayout h = new JwHorizontalLayout(); h.ControlWidth.BeFill(); AddCarrierCodeTB(h); AddFlightNumberTB(h); p.Add(h); }
//# __________ PROTOCOL :: MAKING (HANDOVER) __________ #// public void AddHandoverButton(JwLayout p) { Control c = GetHandoverButton(); if( c == null ) return; p.Add(c); }
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 void AddText(JwLayout v, String value) { JwLabel label = VmUiBuilder.MakeIdentifierLabel(value); label.AlignCenter(); v.Add(label); }
public void AddScheduledDepartureDT(JwLayout p) { _scheduledDepartureDT = VmUiBuilder.MakeDateTimePicker(); _inputControlManager.Add(_scheduledDepartureDT, 0); // kludge (err): LANGUAGE p.Add(VmUiBuilder.MakeLabeledControl("Scheduled Departure", _scheduledDepartureDT)); }
public void AddOriginIdentifierPanel(JwLayout p) { JwLeftRightLayout lr = new JwLeftRightLayout(); lr.Gap = 10; JwLabel originAirportCode = VmUiBuilder.MakeValueLabel(VmAirportData.Default.AirportCode); JwLabeledControl lc = VmUiBuilder.MakeLabeledControl( //kludge (err) - language "Origin", originAirportCode); lr.LeftControl = lc; lr.CenterControl = MakeIdentifierTB(); p.Add(lr); }
public void AddDestinationAirportCodeCB(JwLayout p) { p.Add(MakeDestinationAirportControl()); }