コード例 #1
0
        public override Control GetControl()
        {
            JwVerticalLayout v;
            JwHorizontalLayout h = new JwHorizontalLayout();

            v = new JwVerticalLayout();
            v.BackColor = Color.Yellow;
            //            v.AddLabel("five").UseParentBackColor = false;
            //            v.AddLabel("ten").UseParentBackColor = false;
            //            v.AddLabel("twenty").UseParentBackColor = false;

            v.AddLabel("five");
            v.AddLabel("ten");
            v.AddLabel("twenty");

            h.Add(v);

            v = new JwVerticalLayout();
            v.BackColor = Color.Green;
            v.SetPreferredSize(new Size(75, 100));
            //            v.AddLabel("five").UseParentBackColor = false;
            //            v.AddLabel("ten").UseParentBackColor = false;
            //            v.AddLabel("twenty").UseParentBackColor = false;

            v.AddLabel("five");
            v.AddLabel("ten");
            v.AddLabel("twenty");

            h.Add(v);

            return h;
        }
コード例 #2
0
        //# __________ PROTOCOL :: FRAMEWORK (BODY) __________ #//
        public Control MakeRow()
        {
            JwHorizontalLayout h = new JwHorizontalLayout();
            h.Add(GetCommentLabel());
            h.Add(GetLocationCodeLabel());

            return h;
        }
コード例 #3
0
 public override Control GetControl()
 {
     JwHorizontalLayout e;
     e = new JwHorizontalLayout();
     e.ControlWidth.BeFill();
     e.AddLabel("right").AlignRight();
     return e;
 }
コード例 #4
0
ファイル: JwTwinButton.cs プロジェクト: pabplanalp/pvmail
        //# __________ PROTOCOL :: CONTSTRUCTOR __________ #//
        public JwTwinButton(JwButton leftButton, JwButton rightButton, int gap, int height)
        {
            leftButton.Height = height;
            rightButton.Height = height;

            leftButton.SetPreferredSize( new Size(0, height));
            rightButton.SetPreferredSize( new Size(0, height));
            LeftButton = leftButton;
            RightButton = rightButton;

            JwHorizontalLayout p = new JwHorizontalLayout();
            p.Gap = gap;
            p.ControlWidth.BeFill();
            p.Add(LeftButton);
            p.Add(RightButton);

            SetMargin( new JwMargin(0, 0, 0, 4));
            Add(p);
        }
コード例 #5
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));
        }
コード例 #6
0
        public Control MakeNestListBox()
        {
            JwHorizontalLayout h = new JwHorizontalLayout();
            h.AlignBottom();
            // kludge(err) - langauge
            JwLabel l1 = VmUiBuilder.MakeIdentifierLabel("Nests");
            l1.AlignLeft();
            h.Add( VmUiBuilder.MakeIdentifierLabel("Nests ("));
            _nestCountLabel = VmUiBuilder.MakeValueLabel("");
            h.Add(_nestCountLabel);
            JwLabel l2 = VmUiBuilder.MakeIdentifierLabel("):");
            l2.AlignLeft();
            h.Add(l2);

            _nestLB = VmUiBuilder.MakeListBox();
            _nestLB.DisplayMember = "DisplayNestName";
            JwTopBottomLayout tb = new JwTopBottomLayout();
            tb.TopControl = h;
            tb.CenterControl = _nestLB;
            return tb;
        }
コード例 #7
0
ファイル: VmTagSubpanel.cs プロジェクト: pabplanalp/pvmail
        /*

        public Control MakeTagLaneWrapper()
        {
            return MakeTagLaneControl();
        }
        */
        public Control MakeTagWeightControl()
        {
            _weightLabel = VmUiBuilder.MakeValueLabel("XXXXXXX");
            _weightLabel.SetPreferredSize( _weightLabel.GetPreferredSize());
            _weightLabel.AlignRight();
            String unit = VmProperties.Default.ShouldUseMetric() ? "Kg" : "Lb";
            _weightUnitsLabel = VmUiBuilder.MakeIdentifierLabel(unit);

            JwHorizontalLayout weightPanel = new JwHorizontalLayout();
            weightPanel.AlignBottom();
            weightPanel.Gap = 2;
            weightPanel.Add(_weightLabel);
            weightPanel.Add(_weightUnitsLabel);

            return weightPanel;
        }
コード例 #8
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;
        }
コード例 #9
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;
        }
コード例 #10
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;
        }
コード例 #11
0
 public void AddFlightControl(JwLayout p)
 {
     JwHorizontalLayout h = new JwHorizontalLayout();
     h.ControlWidth.BeFill();
     AddCarrierCodeTB(h);
     AddFlightNumberTB(h);
     p.Add(h);
 }
コード例 #12
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;
        }
コード例 #13
0
        public override Control GetControl()
        {
            JwVerticalLayout e = new JwVerticalLayout();

            JwHorizontalLayout h;
            JwVerticalLayout v;

            // first box
            v = new JwVerticalLayout();

            h = new JwHorizontalLayout();
            h.AddSolidBorder().AddLabel("one");
            h.AddSolidBorder().AddLabel("two");
            h.AddSolidBorder().AddLabel("three");
            v.AddSolidBorder(2, Color.Red).Add(h);

            h = new JwHorizontalLayout();
            h.AddSolidBorder().AddLabel("orange");
            h.AddSolidBorder().AddLabel("yellow");
            h.AddSolidBorder().AddLabel("blue");
            h.AddSolidBorder().AddLabel("green");
            h.AddSolidBorder().AddLabel("red");
            v.AddSolidBorder(2, Color.Red).Add(h);

            h = new JwHorizontalLayout();
            h.AddSolidBorder().AddLabel("kitten");
            h.AddSolidBorder().AddLabel("mouse");
            h.AddSolidBorder().AddLabel("rabbit");
            v.AddSolidBorder(2, Color.Red).Add(h);

            e.AddSolidBorder(2, Color.Blue).Add(v);

            // second box
            v = new JwVerticalLayout();
            //            v.FillWidth = true;

            h = new JwHorizontalLayout();
            h.AlignCenter();
            h.AddSolidBorder().AddLabel("one");
            h.AddSolidBorder().AddLabel("two");
            h.AddSolidBorder().AddLabel("three");
            v.AddSolidBorder(2, Color.Red).Add(h);

            h = new JwHorizontalLayout();
            h.AddSolidBorder().AddLabel("orange");
            h.AddSolidBorder().AddLabel("yellow");
            h.AddSolidBorder().AddLabel("blue");
            h.AddSolidBorder().AddLabel("green");
            h.AddSolidBorder().AddLabel("red");
            v.AddSolidBorder(2, Color.Red).Add(h);

            h = new JwHorizontalLayout();
            h.AlignRight();
            h.AddSolidBorder().AddLabel("kitten");
            h.AddSolidBorder().AddLabel("mouse");
            h.AddSolidBorder().AddLabel("rabbit");
            v.AddSolidBorder(2, Color.Red).Add(h);

            e.AddSolidBorder(2, Color.Blue).Add(v);

            return e;
        }