コード例 #1
0
        public JwLayout MakeText()
        {
            JwVerticalLayout vp1 = new JwVerticalLayout();
            vp1.ControlWidth.BeFill();
            vp1.AlignCenter();
            vp1.Gap = 0;
            // kludge (err) language
            AddText( vp1, "The close out information for this");
            AddText( vp1, "routing is not available.  What would");
            AddText( vp1, "you like to do?");

            JwVerticalDistributedLayout vp = new JwVerticalDistributedLayout();
            vp.ControlWidth.BeFill();
            vp.AlignCenter();

            vp.Add(vp1);

            JwPictureBox pb = VmUiBuilder.MakePictureBox(VmImageManager.Default.GetClockConfirmImage());
            JwLeftRightLayout lr = new JwLeftRightLayout();
            lr.RightControl = pb;

            vp.Add(lr);

            return vp;
        }
コード例 #2
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);
        }
コード例 #3
0
        public JwLayout MakeText()
        {
            JwVerticalLayout vp1 = new JwVerticalLayout();
            vp1.ControlWidth.BeFill();
            vp1.AlignCenter();
            vp1.Gap = 0;
            // kludge (err) language
            AddText( vp1, "Warning: you are currently in");
            AddText( vp1, "training mode.  The scans and data");
            AddText( vp1, "that you are collecting are not");
            AddText( vp1, "really being sent to the server.");

            JwVerticalLayout vp2 = new JwVerticalLayout();
            vp2.ControlWidth.BeFill();
            vp2.AlignCenter();
            vp2.Gap = 0;
            AddText( vp2, "To quit training click the light");
            AddText( vp2, "bulb image above that looks like:");

            JwVerticalDistributedLayout vp = new JwVerticalDistributedLayout();
            vp.ControlWidth.BeFill();
            vp.AlignCenter();

            vp.Add(vp1);

            JwPictureBox pb = VmUiBuilder.MakePictureBox( VmImageManager.Default.GetTrainingImage() );
            JwLeftRightLayout lr = new JwLeftRightLayout();
            lr.RightControl = pb;

            vp.Add(vp2);

            vp.Add(lr);

            return vp;
        }
コード例 #4
0
        public JwLayout MakeText()
        {
            JwVerticalLayout vp1 = new JwVerticalLayout();
            vp1.ControlWidth.BeFill();
            vp1.AlignCenter();
            vp1.Gap = 0;
            // kludge (err) language
            AddText( vp1, "By using training mode, no scans or");
            AddText( vp1, "collected data will be uploaded to");
            AddText( vp1, "the server.  During this time the device");
            AddText( vp1, "will show an image of a light bulb:");

            JwVerticalLayout vp2 = new JwVerticalLayout();
            vp2.ControlWidth.BeFill();
            vp2.AlignCenter();
            vp2.Gap = 0;
            AddText( vp2, "When done, press this lightbulb to");
            AddText( vp2, "end training.");

            JwVerticalDistributedLayout vp = new JwVerticalDistributedLayout();
            vp.ControlWidth.BeFill();
            vp.AlignCenter();

            vp.Add(vp1);

            JwPictureBox pb = VmUiBuilder.MakePictureBox( VmImageManager.Default.GetTrainingImage() );
            JwLeftRightLayout lr = new JwLeftRightLayout();
            lr.RightControl = pb;

            vp.Add(lr);

            vp.Add(vp2);

            return vp;
        }
コード例 #5
0
ファイル: ExampleLauncher.cs プロジェクト: pabplanalp/pvmail
        //# __________ PROTOCOL :: LAYOUT __________ #//
        public Control GetMainPanel()
        {
            ArrayList v = GetExamples();

            JwLabel h = new JwLabel("Layout Examples");

            _listBox = new JwListBox();
            _listBox.DataSource = GetExamples();
            _listBox.DisplayMember = "DisplayName";
            _listBox.SelectedIndexChanged += new EventHandler(ListBox_SelectedIndexChanged);

            _textBox = new TextBox();
            _textBox.Multiline = true;
            _textBox.Height = 150;
            _textBox.ReadOnly = true;
            if ( v.Count > 0 )
                _textBox.Text = ((Example)v[0]).Description;

            JwHeaderFooterControl b;
            b = new JwHeaderFooterControl();
            b.Body = _listBox;
            b.Footer = _textBox;

            JwLeftRightLayout f;
            f = new JwLeftRightLayout();
            f.LeftControl  = new JwButton("Quit", new EventHandler(Quit_Click));
            f.RightControl = new JwButton("Show", new EventHandler(Show_Click));

            JwHeaderFooterControl p;
            p = new JwHeaderFooterControl();
            p.Header = h;
            p.Body   = b;
            p.Footer = f.CreateEmptyBorder(5);
            return p;
        }
コード例 #6
0
ファイル: VmNestSubpanel.cs プロジェクト: pabplanalp/pvmail
        public Control MakeNestPanel()
        {
            _subpanel = MakeNestSubpanel();
            _subpanel.BackColor = Color.White;
            JwEmptyBorder emptyBorder = new JwEmptyBorder(_subpanel, 1);
            JwSolidBorder solidBorder = new JwSolidBorder(emptyBorder, 1, Color.Black);

            JwVerticalLayout v = new JwVerticalLayout();
            v.ControlWidth.BeFill();
            v.AlignLeft();
            v.Gap = 0;

            JwLabel nestIdentifier = VmUiBuilder.MakeFieldLabel(VmLanguage.Default.GetNest());
            JwVerticalLayout nestIdentifierPanel = new JwVerticalLayout();
            //            nestIdentifierPanel.ControlWidth.BeFill();
            nestIdentifierPanel.AlignBottom();
            nestIdentifierPanel.Add(nestIdentifier);

            JwLeftRightLayout lr = new JwLeftRightLayout();
            //            lr.LeftControl = nestIdentifierPanel;
            //            lr.RightControl = MakeNestNamePanel();
            lr.LeftControl= nestIdentifier;
            lr.RightControl = MakeNestNamePanel();

            v.Add(lr);
            v.Add(solidBorder);

            return v;
        }
コード例 #7
0
 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;
 }
コード例 #8
0
ファイル: VmLoginAppPanel.cs プロジェクト: pabplanalp/pvmail
        //# __________ PROTOCOL :: PROTECTED __________ #//
        public JwLeftRightLayout MakeSplashPanel()
        {
            JwPictureBox leftImage = VmUiBuilder.MakePictureBox(
                VmImageManager.Default.GetSplashLeftImage());
            JwPictureBox rightImage = VmUiBuilder.MakePictureBox(
                VmImageManager.Default.GetSplashRightImage());
            JwLabel versionLabel = VmUiBuilder.MakeNoteLabel("(v) " + VmConstant.VERSION);
            JwVerticalLayout vp = new JwVerticalLayout();
            vp.ControlWidth.BeFill();
            vp.AlignBottom();
            vp.AlignLeft();
            vp.Add(versionLabel);

            JwLeftRightLayout lr = new JwLeftRightLayout();
            lr.LeftControl = leftImage;
            lr.CenterControl = vp;
            lr.RightControl = rightImage;
            return lr;
        }
コード例 #9
0
        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);
        }
コード例 #10
0
        public Control MakeItemSummmary()
        {
            _itemCountLabel = VmUiBuilder.MakeValueLabel("");
            // kludge(err) - langauge
            JwLabel piecesLabel = VmUiBuilder.MakeFieldLabel("Nested Items");
            JwHorizontalLayout left = new JwHorizontalLayout();
            left.AlignBottom();
            left.Add(piecesLabel);
            left.Add(_itemCountLabel);

            _itemWeightLabel = VmUiBuilder.MakeValueLabel("");
            String unit = VmProperties.Default.ShouldUseMetric() ? "Kg" : "Lb";
            JwLabel weightUnitsLabel = VmUiBuilder.MakeIdentifierLabel(unit);
            JwHorizontalLayout right = new JwHorizontalLayout();
            right.AlignBottom();
            right.Add(_itemWeightLabel);
            right.Add(weightUnitsLabel);

            JwLeftRightLayout lr = new JwLeftRightLayout();
            lr.LeftControl = left;
            lr.RightControl = right;

            return new JwEmptyBorder(lr, new JwMargin(0, 0, 4, 4));
        }
コード例 #11
0
        public JwLayout MakeText()
        {
            JwVerticalLayout vp1 = new JwVerticalLayout();
            vp1.ControlWidth.BeFill();
            vp1.AlignCenter();
            vp1.Gap = 0;
            // kludge (err) language
            AddText( vp1, "Routing data is not available");
            AddText( vp1, "for this item.  What would you");
            AddText( vp1, "like to do?");

            /*
            JwVerticalLayout vp2 = new JwVerticalLayout();
            vp2.ControlWidth.BeFill();
            vp2.AlignCenter();
            vp2.Gap = 0;
            AddText( vp2, "To quit training click the light");
            AddText( vp2, "bulb image above that looks like:");
            */

            JwVerticalDistributedLayout vp = new JwVerticalDistributedLayout();
            vp.ControlWidth.BeFill();
            vp.AlignCenter();

            vp.Add(vp1);

            JwPictureBox pb = VmUiBuilder.MakePictureBox(VmImageManager.Default.GetAirPlaneConfirmImage());
            JwLeftRightLayout lr = new JwLeftRightLayout();
            lr.RightControl = pb;

            vp.Add(lr);

            return vp;
        }
コード例 #12
0
        public Control MakeInputArea()
        {
            JwVerticalDistributedLayout p = new JwVerticalDistributedLayout();
            p.Add(MakeDateTimeField());
            p.Add(MakeOriginAirportControl());

            JwLeftRightLayout lr = new JwLeftRightLayout();
            lr.Gap = 5;
            lr.LeftControl = MakeCarrierCodeControl();
            lr.CenterControl = MakeTruckNumberCB();
            p.Add(lr);
            return p;
        }
コード例 #13
0
        public JwLayout MakeText()
        {
            JwVerticalLayout vp1 = new JwVerticalLayout();
            vp1.ControlWidth.BeFill();
            vp1.AlignCenter();
            vp1.Gap = 0;
            // kludge (err) language
            AddText( vp1, "You are getting this item after");
            AddText( vp1, "the assigned close out time.");
            AddText( vp1, "What would you like to do?");

            /*
            JwVerticalLayout vp2 = new JwVerticalLayout();
            vp2.ControlWidth.BeFill();
            vp2.AlignCenter();
            vp2.Gap = 0;
            AddText( vp2, "To quit training click the light");
            AddText( vp2, "bulb image above that looks like:");
            */

            JwVerticalDistributedLayout vp = new JwVerticalDistributedLayout();
            vp.ControlWidth.BeFill();
            vp.AlignCenter();

            vp.Add(vp1);

            JwPictureBox pb = VmUiBuilder.MakePictureBox(VmImageManager.Default.GetClockConfirmImage());
            JwLeftRightLayout lr = new JwLeftRightLayout();
            lr.RightControl = pb;

            vp.Add(lr);

            //            vp.Add(vp2);

            return vp;
        }
コード例 #14
0
ファイル: VmTagSubpanel.cs プロジェクト: pabplanalp/pvmail
 public Control MakeLaneAndWeightControl()
 {
     JwLeftRightLayout lr = new JwLeftRightLayout();
     lr.LeftControl = MakeTagLaneControl();
     lr.RightControl = MakeTagWeightControl();
     return lr;
 }
コード例 #15
0
ファイル: VmTagSubpanel.cs プロジェクト: pabplanalp/pvmail
        /*

        public Control MakeTagWeightWrapper()
        {
            JwLeftRightLayout bottomPanel = new JwLeftRightLayout();
            bottomPanel.LeftControl = null;
            bottomPanel.RightControl = MakeTagWeightControl();;

            _bottomLayout = bottomPanel;
            return _bottomLayout;
        }
        */
        public Control MakeBottomControl()
        {
            JwLeftRightLayout bottomPanel = new JwLeftRightLayout();
            bottomPanel.LeftControl = null;
            bottomPanel.RightControl = null;

            _bottomLayout = bottomPanel;
            return _bottomLayout;
        }
コード例 #16
0
ファイル: JwLabeledControl.cs プロジェクト: pabplanalp/pvmail
        public Control MakeLabelPanel()
        {
            JwHorizontalLayout p = new JwHorizontalLayout();
            p.AlignLeft();
            p.AlignBottom();
            p.Gap = 1;

            _visibilityWrapper = new JwVisibilityWrapper(_pictureBox, false);
            p.Add(_visibilityWrapper);
            p.Add(_label);

            if( _linkLabel == null ) return p;

            JwLeftRightLayout lr = new JwLeftRightLayout();
            lr.LeftControl = p;
            lr.RightControl = _linkLabel;
            return lr;
        }
コード例 #17
0
        public Control MakeUldWidgets()
        {
            JwLeftRightLayout lr = new JwLeftRightLayout();
            lr.Gap = 5;
            lr.LeftControl = MakeUldTypeCB();
            lr.CenterControl = MakeUldSerialNumberTB();
            lr.RightControl = MakeUldOwnerCB();

            return lr;
        }
コード例 #18
0
        public Control MakeUldLabel()
        {
            JwHorizontalLayout left = new JwHorizontalLayout();
            left.VerticalAlignment = VerticalAlignment.Middle;
            left.Gap = 1;

            // kludge (err) - language
            JwLabel uld         = VmUiBuilder.MakeIdentifierLabel("ULD: ");
            left.Add(uld);

            JwHorizontalLayout right = new JwHorizontalLayout();
            right.VerticalAlignment = VerticalAlignment.Middle;
            right.Gap = 1;

            // kludge (err) - language
            JwLabel leftParen   = VmUiBuilder.MakeIdentifierLabel("(");
            JwLabel type        = VmUiBuilder.MakeIdentifierLabel("Type /");
            JwLabel number      = VmUiBuilder.MakeIdentifierLabel("Number /");
            JwLabel owner       = VmUiBuilder.MakeIdentifierLabel("Owner");
            JwLabel rightParen  = VmUiBuilder.MakeIdentifierLabel(")");
            right.Add(leftParen);
            right.Add(_uldTypeVisibilityWrapper);
            right.Add(type);
            right.Add(_uldNumberVisibilityWrapper);
            right.Add(number);
            right.Add(_uldOwnerVisibilityWrapper);
            right.Add(owner);
            right.Add(rightParen);

            JwLeftRightLayout lr = new JwLeftRightLayout();
            lr.LeftControl = left;
            lr.RightControl = right;
            return lr;
        }
コード例 #19
0
ファイル: VmWarnPanel.cs プロジェクト: pabplanalp/pvmail
        public JwLayout MakeText()
        {
            JwVerticalLayout vp1 = new JwVerticalLayout();
            vp1.ControlWidth.BeFill();
            vp1.AlignCenter();
            vp1.Gap = 0;

            JwList<String> lines = JwUtility.BreakIntoSeperateLines(Message, 30);
            foreach( String line in lines ) AddText( vp1, line);

            JwVerticalDistributedLayout vp = new JwVerticalDistributedLayout();
            vp.ControlWidth.BeFill();
            vp.AlignCenter();

            vp.Add(vp1);

            if( Image != null )
            {
                JwPictureBox pb = VmUiBuilder.MakePictureBox(Image);
                JwLeftRightLayout lr = new JwLeftRightLayout();
                lr.RightControl = pb;

                vp.Add(lr);
            }

            return vp;
        }
コード例 #20
0
ファイル: VmScanMixedPanel.cs プロジェクト: pabplanalp/pvmail
        public Control MakeScanBoxArea()
        {
            JwVerticalLayout v = new JwVerticalLayout();
            v.ControlWidth.BeFill();
            v.Gap = 1;

            JwLeftRightLayout lr = new JwLeftRightLayout();
            JwVerticalLayout v1 = new JwVerticalLayout();
            v1.AlignBottom();
            // kludge (err) - langauge
            JwLabel lastScanLabel = VmUiBuilder.MakeFieldLabel("Last Scan");
            v1.Add(lastScanLabel);
            lr.LeftControl = v1;
            // kludge (err) - langauge
            lr.RightControl = VmUiBuilder.MakeLinkedLabel("Use Keypad", new System.EventHandler(EnterClicked));
            v.Add(lr);

            _scanLabel = VmUiBuilder.MakeSmallValueLabel("");
            _scanLabel.AlignLeft();
            JwEmptyBorder emptyBorder = new JwEmptyBorder(_scanLabel, 1);
            JwSolidBorder sb = new JwSolidBorder(
                emptyBorder,
                1,
                Color.Black);
            sb.BackColor = Color.White;

            v.Add(sb);

            return v;
        }
コード例 #21
0
ファイル: VmAppPanel.cs プロジェクト: pabplanalp/pvmail
        //# __________ PROTOCOL :: INITIALIZE (LOGO BAR) __________ #//
        public Panel MakeLogoBar()
        {
            JwLeftRightLayout right = new JwLeftRightLayout();
            right.LeftControl = MakeLogoBarModule();
            right.RightControl = MakeAccountCodePanel();

            JwLeftRightLayout logoBar = new JwLeftRightLayout();
            logoBar.LeftControl = MakeLogoBarLogo();
            logoBar.CenterControl = MakeLogoBarSpacer();
            logoBar.RightControl = right;

            _logoBarPanel = new JwLeftRightLayout();
            _logoBarPanel.LeftControl = MakeTrainingModelPanel();
            _logoBarPanel.CenterControl = logoBar;

            return _logoBarPanel;
        }
コード例 #22
0
ファイル: VmAppPanel.cs プロジェクト: pabplanalp/pvmail
 //# __________ PROTOCOL :: INITIALIZE (INSTRUCTIONS) __________ #//
 public Control MakeInstructionsArea()
 {
     JwLeftRightLayout lr = new JwLeftRightLayout();
     lr.LeftControl = MakeBackButton();
     lr.RightControl = MakeInstructions();
     return lr;
 }
コード例 #23
0
        public Control MakeEnterTrainingModeLabel()
        {
            if( ! VmProperties.Default.ShouldAllowTrainingMode() ) return null;

            JwLabel ll = VmUiBuilder.MakeLinkedLabel(
                // kludge (err) - language
                "Train",
                StartTrainingMode);
            ll.AlignRight();

            _startTrainingVisibilityWrapper =  new JwVisibilityWrapper(ll, true);

            JwLeftRightLayout lr = new JwLeftRightLayout();
            lr.RightControl = _startTrainingVisibilityWrapper;

            return lr;
        }
コード例 #24
0
ファイル: VmNestSubpanel.cs プロジェクト: pabplanalp/pvmail
        public Control MakeNestSubpanel()
        {
            JwHorizontalLayout left = new JwHorizontalLayout();
            left.Gap = 1;
            left.AlignBottom();

            _pieceCountLabel = VmUiBuilder.MakeValueLabel("XXXXXXXX");
            _pieceCountLabel.SetPreferredSize(_pieceCountLabel.GetPreferredSize());
            _pieceCountLabel.AlignLeft();
            String piecesText = VmLanguage.Default.GetPieces() + ":";
            JwLabel pieceUnitLabel = VmUiBuilder.MakeIdentifierLabel(piecesText);
            left.Add(pieceUnitLabel);
            left.Add(_pieceCountLabel);

            String unit = VmProperties.Default.ShouldUseMetric() ? "Kg" : "Lb";
            _weightLabel = VmUiBuilder.MakeValueLabel("XXXXXXXXX");
            _weightLabel.SetPreferredSize(_weightLabel.GetPreferredSize());
            _weightLabel.AlignRight();
            JwLabel weightUnitLabel = VmUiBuilder.MakeIdentifierLabel(unit);
            JwHorizontalLayout right = new JwHorizontalLayout();
            right.Gap = 1;
            right.AlignBottom();
            right.Add(_weightLabel);
            right.Add(weightUnitLabel);

            JwLeftRightLayout p = new JwLeftRightLayout();
            p.LeftControl = left;
            p.RightControl = right;

            _statiticsVisibilityWrapper = new JwVisibilityWrapper(p, true);
            return _statiticsVisibilityWrapper;
        }
コード例 #25
0
 public Panel MakeMiddlePanel()
 {
     JwLeftRightLayout p = new JwLeftRightLayout();
     p.CenterControl = MakeDestinationAirportControl();
     p.RightControl= MakeOtherFlightPanel();
     return p;
 }
コード例 #26
0
 // kludge (err) - refactor into seperate panel
 public Control MakeDestinationAirportArea()
 {
     Control comboBox = MakeDestinationAirportCB();
     Control textBox = MakeDestinationAirportTB();
     Control c1 = new JwEmptyBorder(comboBox, 2);
     Control c2 = new JwEmptyBorder(textBox, 2);
     JwLeftRightLayout v = new JwLeftRightLayout();
     v.LeftControl = c1;
     v.CenterControl = c2;
     return new JwSolidBorder(v, 1);
 }
コード例 #27
0
        public Control MakeItemSummmary()
        {
            _itemCountLabel = VmUiBuilder.MakeValueLabel("");
            // kludge(err) - langauge
            JwLabel l1 = VmUiBuilder.MakeIdentifierLabel("Items (");
            l1.AlignLeft();
            JwLabel l2 = VmUiBuilder.MakeFieldLabel(")");
            l2.AlignLeft();
            JwHorizontalLayout left = new JwHorizontalLayout();
            left.AlignBottom();
            left.Add(l1);
            left.Add(_itemCountLabel);
            left.Add(l2);

            _itemWeightLabel = VmUiBuilder.MakeValueLabel("");
            String unit = VmProperties.Default.ShouldUseMetric() ? "Kg" : "Lb";
            JwLabel weightUnitsLabel = VmUiBuilder.MakeIdentifierLabel(unit);
            JwHorizontalLayout right = new JwHorizontalLayout();
            right.AlignBottom();
            right.Add(_itemWeightLabel);
            right.Add(weightUnitsLabel);

            JwLeftRightLayout lr = new JwLeftRightLayout();
            lr.LeftControl = left;
            lr.RightControl = right;

            return lr;
        }
コード例 #28
0
 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);
 }
コード例 #29
0
 public Control MakeControl(
     int comboBoxWidth,
     int textBoxColumnCount)
 {
     Control comboBox = MakeValuesCB(comboBoxWidth);
     Control textBox = MakeFinderTB(textBoxColumnCount);
     Control c1 = new JwEmptyBorder(comboBox, 2);
     Control c2 = new JwEmptyBorder(textBox, 2);
     JwLeftRightLayout v = new JwLeftRightLayout();
     v.LeftControl = c1;
     v.CenterControl = c2;
     return new JwSolidBorder(v, 1);
 }