コード例 #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 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);
        }
コード例 #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);
        }
コード例 #4
0
 public void AddToNestControl(JwLayout p)
 {
     _toNestLabel = AddNestBox(
         p,
         // kludge (err) - language
         "To Nest",
         ChangeToNestClicked);
 }
コード例 #5
0
 public void AddFromNestControl(JwLayout p)
 {
     _fromNestLabel = AddNestBox(
         p,
         // kludge (err) - language
         "From Nest",
         ChangeFromNestClicked);
 }
コード例 #6
0
 //# __________ PROTOCOL :: PRIVATE (BUTTON - ULD)  __________ #//
 public void AddUldButton(JwLayout p)
 {
     VmUiBuilder.AddButton(
         p,
         VmImageManager.Default.GetNewNestUldImage(),
         // kludge (err) - language
         "Uld",
         UldButtonClick);
 }
コード例 #7
0
 //# __________ PROTOCOL :: PRIVATE (BUTTON - CONTAINER)  __________ #//
 public void AddContainerButton(JwLayout p)
 {
     VmUiBuilder.AddButton(
         p,
         VmImageManager.Default.GetNewNestContainerImage(),
         // kludge (err) - language
         "Container",
         ContainerButtonClick);
 }
コード例 #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);
 }
コード例 #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);
 }
コード例 #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);
 }
コード例 #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);
 }
コード例 #12
0
 public void AddLooseButton(JwLayout p)
 {
     VmUiBuilder.AddButton(
         p,
         VmImageManager.Default.GetNoNestImage(),
         // kludge (err) - language
         "Loose",
         LooseButtonClick);
 }
コード例 #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);
 }
コード例 #14
0
 public void AddFloorNestButton(JwLayout p)
 {
     VmUiBuilder.AddButton(
         p,
         VmImageManager.Default.GetNestFloorUnitImage(),
         // kludge (err) - language
         "Floor Unit",
         FloorUnitButtonClick);
 }
コード例 #15
0
 public void AddFlightLabel(JwLayout p)
 {
     JwLabeledControl lc = VmUiBuilder.MakeLabeledValueLabel(
         VmLanguage.Default.GetFlight(),
         VmLanguage.Default.GetChange(),
         ChangeClicked);
     _flightLabel = (JwLabel)lc.Control;
     p.Add(lc);
 }
コード例 #16
0
 public void AddKnownButton(JwLayout p)
 {
     VmUiBuilder.AddButton(
         p,
         VmImageManager.Default.GetNestDeviceImage(),
         // kludge (err) - language
         "On Device",
         KnownButtonClick);
 }
コード例 #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);
 }
コード例 #18
0
ファイル: VmLoginPanel.cs プロジェクト: pabplanalp/pvmail
 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);
 }
コード例 #19
0
 public void AddRecordNestButton(JwLayout p)
 {
     VmUiBuilder.AddButton(
         p,
         VmImageManager.Default.GetRecordNestImage(),
         // kludge (err) - language
         "By Name",
         RecordButtonClick);
 }
コード例 #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);
 }
コード例 #21
0
 //# __________ PROTOCOL :: PRIVATE (BUTTON - FLIGHT DESTINATION)  __________ #//
 public void AddFlightDestinationButton(JwLayout p)
 {
     VmUiBuilder.AddButton(
         p,
         VmImageManager.Default.GetNewNestFlightDestinationImage(),
         // kludge (err) - language
         "Flight Destination",
         FlightDestinationButtonClick);
 }
コード例 #22
0
 public void AddDelegateButton(JwLayout p)
 {
     VmUiBuilder.AddButton(
         p,
         VmImageManager.Default.GetScanDelegateImage(),
         // kludge (err) - language
         "By Delegate",
         DelegateButtonClick);
 }
コード例 #23
0
 //# __________ PROTOCOL :: PRIVATE (BUTTON - ULD)  __________ #//
 public void AddCartButton(JwLayout p)
 {
     VmUiBuilder.AddButton(
         p,
         VmImageManager.Default.GetNewNestCartImage(),
         // kludge (err) - language
         "Cart",
         CartButtonClick);
 }
コード例 #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);
 }
コード例 #25
0
 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);
 }
コード例 #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);
 }
コード例 #27
0
ファイル: VmLoginPanel.cs プロジェクト: pabplanalp/pvmail
 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);
 }
コード例 #28
0
ファイル: VmUiBuilder.cs プロジェクト: pabplanalp/pvmail
 public static void AddButton(
     JwLayout p,
     Bitmap bitmap,
     String text,
     EventHandler eventHandler)
 {
     Panel button =
         MakePictureButton(
             bitmap,
             text,
             new System.EventHandler(eventHandler));
     p.Add(button);
 }
コード例 #29
0
ファイル: VmInUldInfoPanel.cs プロジェクト: pabplanalp/pvmail
        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);
        }
コード例 #30
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);
 }