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);
        }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
0
        //# __________ 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 AddToNestControl(JwLayout p)
 {
     _toNestLabel = AddNestBox(
         p,
         // kludge (err) - language
         "To Nest",
         ChangeToNestClicked);
 }
 public void AddFromNestControl(JwLayout p)
 {
     _fromNestLabel = AddNestBox(
         p,
         // kludge (err) - language
         "From Nest",
         ChangeFromNestClicked);
 }
Exemplo n.º 6
0
 //# __________ PROTOCOL :: PRIVATE (BUTTON - ULD)  __________ #//
 public void AddUldButton(JwLayout p)
 {
     VmUiBuilder.AddButton(
         p,
         VmImageManager.Default.GetNewNestUldImage(),
         // kludge (err) - language
         "Uld",
         UldButtonClick);
 }
Exemplo n.º 7
0
 //# __________ PROTOCOL :: PRIVATE (BUTTON - CONTAINER)  __________ #//
 public void AddContainerButton(JwLayout p)
 {
     VmUiBuilder.AddButton(
         p,
         VmImageManager.Default.GetNewNestContainerImage(),
         // kludge (err) - language
         "Container",
         ContainerButtonClick);
 }
Exemplo n.º 8
0
 //# __________ PROTOCOL :: PRIVATE (BUTTON - SORTED - ONE NEST)  __________ #//
 public void AddSortOneDestinationButton(JwLayout p)
 {
     VmUiBuilder.AddButton(
         p,
         VmImageManager.Default.GetSortItemsOneDestinationImage(),
         // kludge (err) - language
         "It is All the Same Destination",
         SortedOneButtonClick);
 }
Exemplo n.º 9
0
 public void AddIdentifierTB(JwLayout p)
 {
     JwLabeledControl lc = VmUiBuilder.AddTextBoxField(p, VmLanguage.Default.GetIdentifier());
     _identifierTB = (JwTextBox)lc.Control;
     _inputControlManager.AddLabeledTextBox(
         lc,
         1,
         VmContainerValidator.ValidateIdentifier);
 }
Exemplo n.º 10
0
 //# __________ PROTOCOL :: PRIVATE (BUTTON - SORTED  - MANY NESTS)  __________ #//
 public void AddSortManyDestinationsButton(JwLayout p)
 {
     VmUiBuilder.AddButton(
         p,
         VmImageManager.Default.GetSortItemsManyDestinationsImage(),
         // kludge (err) - language
         "Sort by Destination",
         SortedManyButtonClick);
 }
Exemplo n.º 11
0
 public void AddCarrierCodeTB(JwLayout p)
 {
     JwLabeledControl lc = VmUiBuilder.AddTextBoxField(p, VmLanguage.Default.GetCarrier());
     _carrierCodeTB = (JwTextBox)lc.Control;
     _inputControlManager.AddLabeledTextBox(
         lc,
         3,
         VmScheduledFlightValidator.ValidateCarrierCode);
 }
 public void AddLooseButton(JwLayout p)
 {
     VmUiBuilder.AddButton(
         p,
         VmImageManager.Default.GetNoNestImage(),
         // kludge (err) - language
         "Loose",
         LooseButtonClick);
 }
Exemplo n.º 13
0
 public void AddNoteTB(JwLayout p)
 {
     JwLabeledControl lc = VmUiBuilder.AddTextBoxField(p, VmLanguage.Default.GetNote());
     _noteTB = (JwTextBox)lc.Control;
     _inputControlManager.AddLabeledTextBox(
         lc,
         2,
         VmVirtualNestValidator.ValidateNote);
 }
 public void AddFloorNestButton(JwLayout p)
 {
     VmUiBuilder.AddButton(
         p,
         VmImageManager.Default.GetNestFloorUnitImage(),
         // kludge (err) - language
         "Floor Unit",
         FloorUnitButtonClick);
 }
 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 AddKnownButton(JwLayout p)
 {
     VmUiBuilder.AddButton(
         p,
         VmImageManager.Default.GetNestDeviceImage(),
         // kludge (err) - language
         "On Device",
         KnownButtonClick);
 }
Exemplo n.º 17
0
 public void AddUserNameTB(JwLayout p)
 {
     JwLabeledControl lc = VmUiBuilder.AddTextBoxField(p, VmLanguage.Default.GetUserName());
     _userNameTB = (JwTextBox)lc.Control;
     _inputControlManager.AddLabeledTextBox(
         lc,
         0,
         VmUserValidator.ValidateUserName);
 }
Exemplo n.º 18
0
 public void AddPasswordTB(JwLayout p)
 {
     JwLabeledControl lc = VmUiBuilder.AddTextBoxField(p, VmLanguage.Default.GetPassword());
     _passwordTB = (JwTextBox)lc.Control;
     if( VmProperties.Default.ShouldSuppressPassword() ) _passwordTB.PasswordChar = '*';
     _inputControlManager.Add(
         _passwordTB,
         1);
 }
 public void AddRecordNestButton(JwLayout p)
 {
     VmUiBuilder.AddButton(
         p,
         VmImageManager.Default.GetRecordNestImage(),
         // kludge (err) - language
         "By Name",
         RecordButtonClick);
 }
Exemplo n.º 20
0
 //# __________ PROTOCOL :: PRIVATE (BUTTON - MIXED NEST)  __________ #//
 public void AddMixedNestButton(JwLayout p)
 {
     VmUiBuilder.AddButton(
         p,
         VmImageManager.Default.GetMixItemsImage(),
         // kludge (err) - language
         "Mix the Destinations",
         MixedNestButtonClick);
 }
Exemplo n.º 21
0
 //# __________ PROTOCOL :: PRIVATE (BUTTON - FLIGHT DESTINATION)  __________ #//
 public void AddFlightDestinationButton(JwLayout p)
 {
     VmUiBuilder.AddButton(
         p,
         VmImageManager.Default.GetNewNestFlightDestinationImage(),
         // kludge (err) - language
         "Flight Destination",
         FlightDestinationButtonClick);
 }
 public void AddDelegateButton(JwLayout p)
 {
     VmUiBuilder.AddButton(
         p,
         VmImageManager.Default.GetScanDelegateImage(),
         // kludge (err) - language
         "By Delegate",
         DelegateButtonClick);
 }
Exemplo n.º 23
0
 //# __________ PROTOCOL :: PRIVATE (BUTTON - ULD)  __________ #//
 public void AddCartButton(JwLayout p)
 {
     VmUiBuilder.AddButton(
         p,
         VmImageManager.Default.GetNewNestCartImage(),
         // kludge (err) - language
         "Cart",
         CartButtonClick);
 }
Exemplo n.º 24
0
 public void AddNameTB(JwLayout p)
 {
     // kludge (err) - language
     JwLabeledControl lc = VmUiBuilder.AddTextBoxField(p, "Name");
     _nameTB = (JwTextBox)lc.Control;
     _inputControlManager.AddLabeledTextBox(
         lc,
         1,
         VmVirtualNestValidator.ValidateName);
 }
 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);
 }
Exemplo n.º 26
0
 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);
 }
Exemplo n.º 27
0
 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);
 }
Exemplo n.º 28
0
 public static void AddButton(
     JwLayout p,
     Bitmap bitmap,
     String text,
     EventHandler eventHandler)
 {
     Panel button =
         MakePictureButton(
             bitmap,
             text,
             new System.EventHandler(eventHandler));
     p.Add(button);
 }
Exemplo n.º 29
0
        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);
 }