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)); }
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; }
/* 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; }
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; }
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; }
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; }